{"id":1010,"date":"2020-04-12T22:56:50","date_gmt":"2020-04-12T13:56:50","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=1010"},"modified":"2020-04-12T22:56:50","modified_gmt":"2020-04-12T13:56:50","slug":"%e3%83%89%e3%83%83%e3%83%88%e3%83%9e%e3%83%88%e3%83%aa%e3%83%83%e3%82%af%e3%82%b9led%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2020\/04\/12\/1010\/","title":{"rendered":"\u30c9\u30c3\u30c8\u30de\u30c8\u30ea\u30c3\u30af\u30b9LED\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044"},"content":{"rendered":"<h1>\u30c9\u30c3\u30c8\u30de\u30c8\u30ea\u30c3\u30af\u30b9LED<\/h1>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1015\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>LED\u304c\u7e26\u6a2a\u306b\u3044\u3063\u3071\u3044\u4e26\u3093\u3067\u308b\u3084\u3064\u3002<\/p>\n<h2>\u304a\u8cb7\u3044\u7269<\/h2>\n<p><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gI-05163\/\">http:\/\/akizukidenshi.com\/catalog\/g\/gI-05163\/<\/a><\/p>\n<p><a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gM-11246\/\">http:\/\/akizukidenshi.com\/catalog\/g\/gM-11246\/<\/a><\/p>\n<p>GPIO\u8db3\u308a\u3093\u306e\u3067\u30c9\u30e9\u30a4\u30d0\u3082\u8cb7\u3063\u305f\u3002<\/p>\n<h2>GPIO\u306e\u307f\u3067\u70b9\u3051\u3066\u307f\u308b<\/h2>\n<p>\u30a2\u30ce\u30fc\u30c9\u306b5V\u3064\u3051\u3066\u3001\u30ab\u30bd\u30fc\u30c9\u306bGND\u3001\u9593\u306b\u62b5\u6297\u5165\u308c\u3066\u308b\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1011\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm4-225x300.png\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm4-225x300.png 225w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm4.png 750w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a> <a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1012\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm3-225x300.png\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm3-225x300.png 225w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm3.png 750w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a> <a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1013\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm2-225x300.png\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm2-225x300.png 225w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm2.png 750w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a> <a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1014\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm1-225x300.png\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm1-225x300.png 225w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm1.png 750w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>\u3067\u304d\u305f\u3002\u30a2\u30ce\u30fc\u30c9\u30d4\u30f3\u3068\u30ab\u30bd\u30fc\u30c9\u30d4\u30f3\u304c\u4ea4\u5dee\u3057\u305f\u3068\u3053\u308d\u306eLED\u304c\u70b9\u304f\u3002<\/p>\n<h2>HT16K33\u3092\u4f7f\u3046<\/h2>\n<h3>\u30b9\u30b1\u30c3\u30c1\u4f8b\u3092\u52d5\u304b\u3059<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1016\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm5-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm5-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm5-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm5.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u63a5\u7d9a\u3057\u307e\u3057\u3066\u3002\u81ea\u524d\u3067\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3068\u306b\u3089\u3081\u3063\u3053\u3057\u306a\u304c\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u66f8\u3044\u3066\u3044\u304f\u306e\u306f\u3064\u3089\u307f\u304c\u3042\u308b\u306e\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/lpaseen\/ht16k33\">https:\/\/github.com\/lpaseen\/ht16k33<\/a><\/p>\n<p>zip\u5f62\u5f0f\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8aad\u307f\u8fbc\u3080\u3002\u30b9\u30b1\u30c3\u30c1\u4f8b\u306elighttest\u3092\u3084\u3063\u3066\u307f\u308b\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/RD2llXyiKIA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>16\u00d78\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u308b\u306e\u3067\u3001\u5f8c\u308d8\u500b\u5206\u304c\u9593\u9694\u7a7a\u3044\u3066\u308b\u3051\u3069\u3067\u304d\u305f\u3002<\/p>\n<h3>8\u00d78\u306eLED\u30922\u500b\u4f7f\u3046<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1017\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm6-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm6-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm6-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/04\/lm6.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3059\u3063\u3054\u3044\u6c5a\u3044\u3002\u30ab\u30bd\u30fc\u30c9\u5074\u306f\u5171\u7528\u3067\u304d\u308b\u3063\u307d\u3044\u306e\u30672\u672c\u307e\u3068\u3081\u3066HT16K33\u306b\u3064\u306a\u3044\u3060\u3002\u3082\u3093\u3067\u3082\u3063\u304b\u3044lighttest\u3059\u308b\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/vTpJY7P4daE\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3044\u3044\u611f\u3058\u3067\u3059\u3002<\/p>\n<h3>\u914d\u5217\u3067\u64cd\u4f5c\u3067\u304d\u308b\u611f\u3058\u306b\u3057\u305f\u3044<\/h3>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u898b\u308b\u3068<\/p>\n<pre><code class=\"cpp\"> void    begin(uint8_t address);\r\n  void    end();\r\n  void    clearAll(); \/\/ clear all LEDs\r\n  uint8_t sleep();  \/\/ stop oscillator to put the chip to sleep\r\n  uint8_t normal(); \/\/ wake up chip and start ocillator\r\n  uint8_t clearLed(uint8_t ledno); \/\/ 16x8 = 128 LEDs to turn on, 0-127\r\n  uint8_t setLed(uint8_t ledno); \/\/ 16x8 = 128 LEDs to turn on, 0-127\r\n  void    define7segFont(uint8_t *ptr); \/\/ Pass a pointer to a font table for 7seg\r\n  void    define16segFont(uint16_t *ptr); \/\/ Pass a pointer to a font table for 16seg\r\n  uint8_t set7Seg(uint8_t dig, uint8_t cha, boolean dp); \/\/ position 0-15, 0-15 (0-F Hexadecimal), decimal point\r\n  uint8_t set16Seg(uint8_t dig, uint8_t cha); \/\/ position 0-7, see asciifont.h\r\n  boolean getLed(uint8_t ledno,boolean Fresh=false); \/\/ check if a specific led is on(true) or off(false)\r\n  uint8_t setDisplayRaw(uint8_t pos, uint8_t val); \/\/ load byte \"pos\" with value \"val\"\r\n  uint8_t sendLed(); \/\/ send whatever led patter you set\r\n  uint8_t set7SegNow(uint8_t dig, uint8_t cha, boolean dp); \/\/ position 0-15, 0-15 (0-F Hexadecimal), decimal point and send led in one function\r\n  uint8_t set7SegRaw(uint8_t dig, uint8_t val); \/\/ load byte \"pos\" with value \"val\"\r\n  uint8_t set16SegNow(uint8_t dig, uint8_t cha); \/\/ position 0-17, see asciifont.h and send led in one function\r\n  uint8_t setLedNow(uint8_t ledno); \/\/Set a single led and send led in one function\r\n  uint8_t clearLedNow(uint8_t ledno); \/\/Clear a single led and send led in one function\r\n  uint8_t setBrightness(uint8_t level); \/\/ level 0-16, 0 means display off\r\n  uint8_t keyINTflag(); \/\/ INTerrupt flag value, set when a key is pressed\r\n  uint8_t keysPressed(); \/\/ report how many keys that are pressed, clear means report as if new\r\n  int8_t  readKey(boolean clear=false);  \/\/ read what key was pressed, Fresh=false to go from cache\r\n  void    readKeyRaw(KEYDATA keydata,boolean Fresh=true); \/\/read the raw key info, bitmapped info of all key(s) pressed\r\n  uint8_t setBlinkRate(uint8_t rate); \/\/ HT16K33_DSP_{NOBLINK,BLINK2HZ,BLINK1HZ,BLINK05HZ}\r\n  void    displayOn();\r\n  void    displayOff();\r\n  \/\/ Some helper functions that can be useful in other parts of the code that use this library\r\n  uint8_t i2c_write(uint8_t val);\r\n  uint8_t i2c_write(uint8_t cmd,uint8_t *data,uint8_t size,boolean LSB=false);\r\n  uint8_t i2c_read(uint8_t addr);\r\n  uint8_t i2c_read(uint8_t addr,uint8_t *data,uint8_t size);<\/code><\/pre>\n<p>0-127\u306e\u6307\u5b9a\u3067\u70b9\u706f\u3055\u305b\u308b\u611f\u3058\u3002\u914d\u7f6e\u306f<\/p>\n<table width=\"576\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"36\">0<\/td>\n<td style=\"text-align: center;\" width=\"36\">1<\/td>\n<td style=\"text-align: center;\" width=\"36\">2<\/td>\n<td style=\"text-align: center;\" width=\"36\">3<\/td>\n<td style=\"text-align: center;\" width=\"36\">4<\/td>\n<td style=\"text-align: center;\" width=\"36\">5<\/td>\n<td style=\"text-align: center;\" width=\"36\">6<\/td>\n<td style=\"text-align: center;\" width=\"36\">7<\/td>\n<td style=\"text-align: center;\" width=\"36\">8<\/td>\n<td style=\"text-align: center;\" width=\"36\">9<\/td>\n<td style=\"text-align: center;\" width=\"36\">10<\/td>\n<td style=\"text-align: center;\" width=\"36\">11<\/td>\n<td style=\"text-align: center;\" width=\"36\">12<\/td>\n<td style=\"text-align: center;\" width=\"36\">13<\/td>\n<td style=\"text-align: center;\" width=\"36\">14<\/td>\n<td style=\"text-align: center;\" width=\"36\">15<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">16<\/td>\n<td style=\"text-align: center;\">17<\/td>\n<td style=\"text-align: center;\">18<\/td>\n<td style=\"text-align: center;\">19<\/td>\n<td style=\"text-align: center;\">20<\/td>\n<td style=\"text-align: center;\">21<\/td>\n<td style=\"text-align: center;\">22<\/td>\n<td style=\"text-align: center;\">23<\/td>\n<td style=\"text-align: center;\">24<\/td>\n<td style=\"text-align: center;\">25<\/td>\n<td style=\"text-align: center;\">26<\/td>\n<td style=\"text-align: center;\">27<\/td>\n<td style=\"text-align: center;\">28<\/td>\n<td style=\"text-align: center;\">29<\/td>\n<td style=\"text-align: center;\">30<\/td>\n<td style=\"text-align: center;\">31<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">32<\/td>\n<td style=\"text-align: center;\">33<\/td>\n<td style=\"text-align: center;\">34<\/td>\n<td style=\"text-align: center;\">35<\/td>\n<td style=\"text-align: center;\">36<\/td>\n<td style=\"text-align: center;\">37<\/td>\n<td style=\"text-align: center;\">38<\/td>\n<td style=\"text-align: center;\">39<\/td>\n<td style=\"text-align: center;\">40<\/td>\n<td style=\"text-align: center;\">41<\/td>\n<td style=\"text-align: center;\">42<\/td>\n<td style=\"text-align: center;\">43<\/td>\n<td style=\"text-align: center;\">44<\/td>\n<td style=\"text-align: center;\">45<\/td>\n<td style=\"text-align: center;\">46<\/td>\n<td style=\"text-align: center;\">47<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">48<\/td>\n<td style=\"text-align: center;\">49<\/td>\n<td style=\"text-align: center;\">50<\/td>\n<td style=\"text-align: center;\">51<\/td>\n<td style=\"text-align: center;\">52<\/td>\n<td style=\"text-align: center;\">53<\/td>\n<td style=\"text-align: center;\">54<\/td>\n<td style=\"text-align: center;\">55<\/td>\n<td style=\"text-align: center;\">56<\/td>\n<td style=\"text-align: center;\">57<\/td>\n<td style=\"text-align: center;\">58<\/td>\n<td style=\"text-align: center;\">59<\/td>\n<td style=\"text-align: center;\">60<\/td>\n<td style=\"text-align: center;\">61<\/td>\n<td style=\"text-align: center;\">62<\/td>\n<td style=\"text-align: center;\">63<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">64<\/td>\n<td style=\"text-align: center;\">65<\/td>\n<td style=\"text-align: center;\">66<\/td>\n<td style=\"text-align: center;\">67<\/td>\n<td style=\"text-align: center;\">68<\/td>\n<td style=\"text-align: center;\">69<\/td>\n<td style=\"text-align: center;\">70<\/td>\n<td style=\"text-align: center;\">71<\/td>\n<td style=\"text-align: center;\">72<\/td>\n<td style=\"text-align: center;\">73<\/td>\n<td style=\"text-align: center;\">74<\/td>\n<td style=\"text-align: center;\">75<\/td>\n<td style=\"text-align: center;\">76<\/td>\n<td style=\"text-align: center;\">77<\/td>\n<td style=\"text-align: center;\">78<\/td>\n<td style=\"text-align: center;\">79<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">80<\/td>\n<td style=\"text-align: center;\">81<\/td>\n<td style=\"text-align: center;\">82<\/td>\n<td style=\"text-align: center;\">83<\/td>\n<td style=\"text-align: center;\">84<\/td>\n<td style=\"text-align: center;\">85<\/td>\n<td style=\"text-align: center;\">86<\/td>\n<td style=\"text-align: center;\">87<\/td>\n<td style=\"text-align: center;\">88<\/td>\n<td style=\"text-align: center;\">89<\/td>\n<td style=\"text-align: center;\">90<\/td>\n<td style=\"text-align: center;\">91<\/td>\n<td style=\"text-align: center;\">92<\/td>\n<td style=\"text-align: center;\">93<\/td>\n<td style=\"text-align: center;\">94<\/td>\n<td style=\"text-align: center;\">95<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">96<\/td>\n<td style=\"text-align: center;\">97<\/td>\n<td style=\"text-align: center;\">98<\/td>\n<td style=\"text-align: center;\">99<\/td>\n<td style=\"text-align: center;\">100<\/td>\n<td style=\"text-align: center;\">101<\/td>\n<td style=\"text-align: center;\">102<\/td>\n<td style=\"text-align: center;\">103<\/td>\n<td style=\"text-align: center;\">104<\/td>\n<td style=\"text-align: center;\">105<\/td>\n<td style=\"text-align: center;\">106<\/td>\n<td style=\"text-align: center;\">107<\/td>\n<td style=\"text-align: center;\">108<\/td>\n<td style=\"text-align: center;\">109<\/td>\n<td style=\"text-align: center;\">110<\/td>\n<td style=\"text-align: center;\">111<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">112<\/td>\n<td style=\"text-align: center;\">113<\/td>\n<td style=\"text-align: center;\">114<\/td>\n<td style=\"text-align: center;\">115<\/td>\n<td style=\"text-align: center;\">116<\/td>\n<td style=\"text-align: center;\">117<\/td>\n<td style=\"text-align: center;\">118<\/td>\n<td style=\"text-align: center;\">119<\/td>\n<td style=\"text-align: center;\">120<\/td>\n<td style=\"text-align: center;\">121<\/td>\n<td style=\"text-align: center;\">122<\/td>\n<td style=\"text-align: center;\">123<\/td>\n<td style=\"text-align: center;\">124<\/td>\n<td style=\"text-align: center;\">125<\/td>\n<td style=\"text-align: center;\">126<\/td>\n<td style=\"text-align: center;\">127<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3046\u3002\u3053\u308c\u3092\u914d\u5217\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3063\u307d\u304f\u3057\u305f\u3044\u3002\u60a9\u3093\u3060\u7d50\u679c<\/p>\n<pre><code class=\"cpp\">#include \r\n\r\nHT16K33 HT;\r\n\r\nuint8_t disptable[8][16][2] = {\r\n  {{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}, {10, 0}, {11, 0}, {12, 0}, {13, 0}, {14, 0}, {15, 0}},\r\n  {{16, 0}, {17, 0}, {18, 0}, {19, 0}, {20, 0}, {21, 0}, {22, 0}, {23, 0}, {24, 0}, {25, 0}, {26, 0}, {27, 0}, {28, 0}, {29, 0}, {30, 0}, {31, 0}},\r\n  {{32, 0}, {33, 0}, {34, 0}, {35, 0}, {36, 0}, {37, 0}, {38, 0}, {39, 0}, {40, 0}, {41, 0}, {42, 0}, {43, 0}, {44, 0}, {45, 0}, {46, 0}, {47, 0}},\r\n  {{48, 0}, {49, 0}, {50, 0}, {51, 0}, {52, 0}, {53, 0}, {54, 0}, {55, 0}, {56, 0}, {57, 0}, {58, 0}, {59, 0}, {60, 0}, {61, 0}, {62, 0}, {63, 0}},\r\n  {{64, 0}, {65, 0}, {66, 0}, {67, 0}, {68, 0}, {69, 0}, {70, 0}, {71, 0}, {72, 0}, {73, 0}, {74, 0}, {75, 0}, {76, 0}, {77, 0}, {78, 0}, {79, 0}},\r\n  {{80, 0}, {81, 0}, {82, 0}, {83, 0}, {84, 0}, {85, 0}, {86, 0}, {87, 0}, {88, 0}, {89, 0}, {90, 0}, {91, 0}, {92, 0}, {93, 0}, {94, 0}, {95, 0}},\r\n  {{96, 0}, {97, 0}, {98, 0}, {99, 0}, {100, 0}, {101, 0}, {102, 0}, {103, 0}, {104, 0}, {105, 0}, {106, 0}, {107, 0}, {108, 0}, {109, 0}, {110, 0}, {111, 0}},\r\n  {{112, 0}, {113, 0}, {114, 0}, {115, 0}, {116, 0}, {117, 0}, {118, 0}, {119, 0}, {120, 0}, {121, 0}, {122, 0}, {123, 0}, {124, 0}, {125, 0}, {126, 0}, {127, 0}}\r\n};\r\n\r\nvoid test() {\r\n  for (int i = 0 ; i &lt; 8; i++) {\r\n    for (int j = 0; j &lt; 16; j++) {\r\n      if (disptable[i][j][1] == 1) {\r\n        disptable[i][j][1] = 0;\r\n      } else {\r\n        disptable[i][j][1] = 1;\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nvoid dispset() {\r\n  for (int i = 0 ; i &lt; 8; i++) {\r\n    for (int j = 0; j &lt; 16; j++) {\r\n      if (disptable[i][j][1] == 1) {\r\n        HT.setLed(disptable[i][j][0]);\r\n      } else {\r\n        HT.clearLed(disptable[i][j][0]);\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nvoid setup() {\r\n  HT.begin(0x00);\r\n}\r\n\r\nvoid loop() {\r\n  test();\r\n  dispset();\r\n\r\n  HT.sendLed();\r\n  delay(1000);\r\n\r\n}<\/code><\/pre>\n<p>3\u6b21\u5143\u914d\u5217\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u3053\u308c\u304c\u3044\u3044\u306e\u304b\u60aa\u3044\u306e\u304b\u306f\u308f\u304b\u3093\u306a\u3044\u3002\u52d5\u304b\u3057\u3066\u307f\u308b\u3068<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/mi9EG4Mzde4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u52d5\u3044\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u3053\u3053\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c9\u30c3\u30c8\u30de\u30c8\u30ea\u30c3\u30af\u30b9LED LED\u304c\u7e26\u6a2a\u306b\u3044\u3063\u3071\u3044\u4e26\u3093\u3067\u308b\u3084\u3064\u3002 \u304a\u8cb7\u3044\u7269 http:\/\/akizukidenshi.com\/catalog\/g\/gI-05163\/ http:\/\/akizukidenshi.com\/cat &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2020\/04\/12\/1010\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1017,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[69,106,105,54],"class_list":["post-1010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-arduino","tag-ht16k33","tag-led","tag-54"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":1,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions\/1018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/1017"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}