{"id":983,"date":"2021-02-14T20:38:06","date_gmt":"2021-02-14T12:38:06","guid":{"rendered":"https:\/\/www.iotch.xyz\/?p=983"},"modified":"2021-02-14T20:38:06","modified_gmt":"2021-02-14T12:38:06","slug":"%e4%bd%bf%e7%94%a8esp8266%e9%80%9a%e8%bf%87blinker%e6%8e%a7%e5%88%b6ws2812%e7%81%af%e5%b8%a6-%e8%bd%ac%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=983","title":{"rendered":"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26&#8211;\u8f6c\u8f7d"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"\u786c\u4ef6\u53ca\u786c\u4ef6\u63a5\u7ebf\u56fe\">\u786c\u4ef6\u53ca\u786c\u4ef6\u63a5\u7ebf\u56fe<\/h2>\n\n\n\n<p><strong>\u786c\u4ef6\u5217\u8868\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ESP8266 NodeMCU<\/li><li>WS2812B \u706f\u5e26(60\u9897)<\/li><li>\u675c\u90a6\u7ebf\uff08\u6bcd\u5bf9\u6bcd\uff093\u6761<\/li><\/ul>\n\n\n\n<p><strong>\u63a5\u7ebf\u56fe<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/connect-line.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/connect-line.png\" alt=\"\u63a5\u7ebf\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Arduino-\u914d\u7f6e\">Arduino \u914d\u7f6e<\/h2>\n\n\n\n<p>\u5b89\u88c5 <code>ESP8266<\/code> \u6269\u5c55\u5e93\u4e0d\u5728\u8fd9\u91cc\u8bf4\u660e\u4e86\uff0c\u53ef\u67e5\u770b\u6211\u53e6\u4e00\u7bc7\u535a\u5ba2 <a href=\"https:\/\/blog.lanweihong.com\/posts\/18040\/\" target=\"_blank\"  rel=\"nofollow\" >\u4f7f\u7528ESP8266\u5f00\u53d1\u677f\u5237\u5165Deauther\u7528\u4e8eWiFi\u653b\u51fb\u6d4b\u8bd5<\/a> \u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u5b89\u88c5-blinker-Arduino-\u5e93\">1. \u5b89\u88c5 blinker Arduino \u5e93<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>\u70b9\u51fb <a href=\"https:\/\/github.com\/blinker-iot\/blinker-library\/archive\/master.zip\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u4e0b\u8f7dblinker Arduino\u5e93<\/a> \uff1b<\/li><li>\u5c06\u4e0b\u8f7d\u597d\u7684blinker\u5e93\u89e3\u538b\u5230 <strong>\u6211\u7684\u7535\u8111<\/strong> &gt; <strong>\u6587\u6863<\/strong> &gt; <strong>Arduino<\/strong> &gt; <strong>libraries<\/strong> \u6587\u4ef6\u5939\u4e2d\uff1b<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/libraries.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/libraries.png\" alt=\"libraries\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u5b89\u88c5-Adafruit-NeoPixel-\u5e93\">2. \u5b89\u88c5 Adafruit_NeoPixel \u5e93<\/h3>\n\n\n\n<p>Github\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/adafruit\/Adafruit_NeoPixel\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >Adafruit_NeoPixel<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u65b9\u6cd5\u4e00\uff08\u5728\u7ebf\u5b89\u88c5\uff09\">\u65b9\u6cd5\u4e00\uff08\u5728\u7ebf\u5b89\u88c5\uff09<\/h4>\n\n\n\n<p>\u6253\u5f00 <code>Arduino<\/code>\uff0c <code>\u9879\u76ee<\/code> -&gt; <code>\u52a0\u8f7d\u5e93<\/code> -&gt; <code>\u7ba1\u7406\u5e93<\/code>\uff0c\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165 \u201cNeopixel strip\u201d\uff0c\u5355\u51fb <code>\u5b89\u88c5<\/code> \u5373\u53ef\uff1b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/libray-search.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/libray-search.png\" alt=\"\u641c\u7d22\u5e93\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u65b9\u6cd5\u4e8c\uff08\u79bb\u7ebf\u5b89\u88c5\uff09\">\u65b9\u6cd5\u4e8c\uff08\u79bb\u7ebf\u5b89\u88c5\uff09<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8bbf\u95ee <code>Adafruit_NeoPixel<\/code> <a href=\"https:\/\/github.com\/adafruit\/Adafruit_NeoPixel\/releases\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >Releases page<\/a>\uff1b<\/li><li>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\uff1b<\/li><li>\u89e3\u538b\u6587\u4ef6\uff1b<\/li><li>\u6253\u5f00 <code>Arduino<\/code>\uff0c <code>\u9879\u76ee<\/code> &gt; <code>\u52a0\u8f7d\u5e93<\/code> &gt; <code>\u6dfb\u52a0.ZIP\u5e93...<\/code>\uff1b<\/li><\/ol>\n\n\n\n<p>\u5b89\u88c5\u6210\u529f\u540e\u5728 <code>Arduino<\/code> \u53ef\u770b\u5230\u5df2\u52a0\u8f7d <code>Adafruit NeoPixel<\/code> \u5e93\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/neopixel.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/neopixel.png\" alt=\"\u5b89\u88c5\u6210\u529f\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5728App\u4e2d\u6dfb\u52a0\u8bbe\u5907\uff0c\u83b7\u53d6-Secret-Key\">\u5728App\u4e2d\u6dfb\u52a0\u8bbe\u5907\uff0c\u83b7\u53d6 <code>Secret Key<\/code><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8fdb\u5165App\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 \u201c<strong>+<\/strong>\u201c \u53f7\uff0c\u7136\u540e\u9009\u62e9 <strong>\u6dfb\u52a0\u8bbe\u5907<\/strong>\uff1b<\/li><li>\u70b9\u51fb\u9009\u62e9 <code>Arduino<\/code> &gt; <code>WiFi\u63a5\u5165<\/code>\uff1b<\/li><li>\u9009\u62e9\u8981\u63a5\u5165\u7684\u670d\u52a1\u5546\uff1b<\/li><li>\u590d\u5236\u7533\u8bf7\u5230\u7684 <code>Secret Key<\/code>\uff1b<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/get-key-success.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/get-key-success.jpg\" alt=\"\u83b7\u53d6Key\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u7f16\u5199-Arduino-\u7a0b\u5e8f\">\u7f16\u5199 <code>Arduino<\/code> \u7a0b\u5e8f<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u7f16\u7801\">\u7f16\u7801<\/h3>\n\n\n\n<p>\u6253\u5f00 <code>Arduino<\/code> \uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff0c\u4ee3\u7801\u6765\u81ea\uff1a<a href=\"https:\/\/gitee.com\/young_people_only_love_her\/My_ESP8266\/blob\/master\/blinker%E6%8E%A7%E5%88%B6WS2812\/blinkerWS2812\/blinkerWS2812.ino\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >blinkerWS2812.ino<\/a> \uff1b<\/p>\n\n\n\n<p>\u4fee\u6539\u6e90\u7801\u4e2d <code>auth[]<\/code> \u7684\u503c\u4e3a\u5728App\u4e2d\u83b7\u53d6\u5230\u7684 <code>Secret Key<\/code> \uff0c\u5176\u4ed6\u914d\u7f6e\u53ef\u6839\u636e\u81ea\u8eab\u6761\u4ef6\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#define BLINKER_PRINT Serial<br>#define BLINKER_MIOT_LIGHT<br>#define BLINKER_WIFI<br>#include &lt;Blinker.h&gt;<br>#include &lt;Adafruit_NeoPixel.h&gt;<br><br>\/\/ key\uff0c\u5728\u70b9\u706f App \u4e2d\u83b7\u53d6<br>char auth[] = \"xxxxxxxxx\";<br>\/\/ DIN PIN (GPIO15, D8)<br>#define PIN 15<br>\/\/ \u706f\u5e26 LED \u6570\u91cf<br>#define NUMPIXELS 60<br>Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);<br><br>\/\/ \u65b0\u5efa\u7ec4\u4ef6\u5bf9\u8c61<br>BlinkerRGB RGB1(\"RGB\");<br><br>\/\/ RGB\u548c\u4eae\u5ea6<br>int LED_R=0,LED_G=0,LED_B=0,LED_Bright=180;<br>bool WIFI_Status = true;<br>void smartConfig()\/\/\u914d\u7f51\u51fd\u6570<br>{<br>WiFi.mode(WIFI_STA);<br>Serial.println(\"\\r\\nWait for Smartconfig...\");<br>\/\/ \u7b49\u5f85\u624b\u673a\u7aef\u53d1\u51fa\u7684\u7528\u6237\u540d\u4e0e\u5bc6\u7801<br>WiFi.beginSmartConfig();<br>while (1)<br>{<br>Serial.print(\".\");<br>digitalWrite(LED_BUILTIN, HIGH);<br>delay(1000);<br>digitalWrite(LED_BUILTIN, LOW);<br>delay(1000);<br>\/\/ \u9000\u51fa\u7b49\u5f85<br>if (WiFi.smartConfigDone())<br>{<br>Serial.println(\"SmartConfig Success\");<br>Serial.printf(\"SSID:%s\\r\\n\", WiFi.SSID().c_str());<br>Serial.printf(\"PSW:%s\\r\\n\", WiFi.psk().c_str());<br>break;<br>}<br>}<br>}<br>void WIFI_Set()\/\/<br>{<br>\/\/Serial.println(\"\\r\\n\u6b63\u5728\u8fde\u63a5\");<br>int count = 0;<br>while(WiFi.status()!=WL_CONNECTED)<br>{<br>if(WIFI_Status)<br>{<br>Serial.print(\".\");<br>digitalWrite(LED_BUILTIN, HIGH);<br>delay(500);<br>digitalWrite(LED_BUILTIN, LOW);<br>delay(500);<br>count++;<br>if(count&gt;=5)\/\/5s<br>{<br>WIFI_Status = false;<br>Serial.println(\"WiFi\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u7528\u624b\u673a\u8fdb\u884c\u914d\u7f51\");<br>}<br>}<br>else<br>{<br>\/\/ \u5fae\u4fe1\u667a\u80fd\u914d\u7f51<br>smartConfig();<br>}<br>}<br>\/* Serial.println(\"\u8fde\u63a5\u6210\u529f\");<br>Serial.print(\"IP:\");<br>Serial.println(WiFi.localIP());*\/<br>}<br><br>void SET_RGB(int R,int G,int B,int bright)<br>{<br>\/\/ \u628a\u706f\u6761\u53d8\u8272<br>for (uint16_t i = 0; i &lt; NUMPIXELS; i++)<br>{<br>pixels.setPixelColor(i,R,G,B);<br>}<br>\/\/ \u8bbe\u7f6e\u4eae\u5ea6<br>pixels.setBrightness(bright);<br>\/\/ \u9001\u51fa\u663e\u793a<br>pixels.show();<br>}<br><br>\/\/APP RGB\u989c\u8272\u8bbe\u7f6e\u56de\u8c03<br>void rgb1_callback(uint8_t r_value, uint8_t g_value,<br>uint8_t b_value, uint8_t bright_value)<br>{<br><br>\/\/digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));<br>BLINKER_LOG(\"R value: \", r_value);<br>BLINKER_LOG(\"G value: \", g_value);<br>BLINKER_LOG(\"B value: \", b_value);<br>BLINKER_LOG(\"Rrightness value: \", bright_value);<br>LED_Bright = bright_value;<br>SET_RGB(r_value,g_value,b_value,LED_Bright);<br>}<br><br>void setup() {<br>\/\/ \u521d\u59cb\u5316\u4e32\u53e3<br>Serial.begin(115200);<br>\/\/ WS2812\u521d\u59cb\u5316<br>pixels.begin();<br>pixels.show();<br>pinMode(LED_BUILTIN, OUTPUT);<br>#if defined(BLINKER_PRINT)<br>BLINKER_DEBUG.stream(BLINKER_PRINT);<br>#endif<br><br>WIFI_Set();<br>\/\/ \u521d\u59cb\u5316blinker<br>Blinker.begin(auth, WiFi.SSID().c_str(), WiFi.psk().c_str());<br>\/\/ \u6ce8\u518c\u8c03\u8282\u989c\u8272\u7684\u56de\u8c03\u51fd\u6570<br>RGB1.attach(rgb1_callback);<br>}<br><br>void loop() {<br>Blinker.run();<br>}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u6e90\u7801\u4e2d\u53ea\u5b9e\u73b0\u5355\u8272\u663e\u793a\uff0c\u66f4\u591a\u989c\u8272\u6216\u9177\u70ab\u7684\u6548\u679c\u663e\u793a\u8bf7\u81ea\u5df1\u4fee\u6539\u6e90\u7801\u5b9e\u73b0\u3002<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4e0a\u4f20\u81f3-ESP8266\">\u4e0a\u4f20\u81f3 <code>ESP8266<\/code><\/h3>\n\n\n\n<p>\u4fee\u6539\u6e90\u7801\u76f8\u5173\u914d\u7f6e\u540e\uff0c\u5355\u51fb <code>Arduino<\/code> \u7684 <code>\u4e0a\u4f20<\/code> \u6309\u94ae\u4e0a\u4f20\u4ee3\u7801\u81f3 <code>ESP8266<\/code>\uff1b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/upload.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/upload.png\" alt=\"\u4e0a\u4f20\"\/><\/a><\/figure>\n\n\n\n<p><strong>\u4e0a\u4f20\u6210\u529f<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/upload-success.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/upload-success.png\" alt=\"\u4e0a\u4f20\u6210\u529f\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"App-\u914d\u7f6e\u8fde\u63a5\">App \u914d\u7f6e\u8fde\u63a5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u8fde\u63a5\u8bbe\u5907\">\u8fde\u63a5\u8bbe\u5907<\/h3>\n\n\n\n<p>\u6253\u5f00\u70b9\u706f App\uff0c\u70b9\u51fb <code>\u4fa7\u8fb9\u680f\u6309\u94ae<\/code> -&gt; <code>\u5f00\u53d1\u8005<\/code> -&gt; <code>\u5f00\u53d1\u5de5\u5177<\/code> -&gt; <code>EspTouch\/SmartConfig<\/code>\uff0c\u8f93\u5165 <code>WiFi<\/code> \u5bc6\u7801\u540e\u5355\u51fb <code>\u5f00\u59cb\u914d\u7f6e<\/code>\uff1b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/blinker-tool.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/blinker-tool.jpg\" alt=\"\u5f00\u53d1\u5de5\u5177\"\/><\/a><\/figure>\n\n\n\n<p><strong>\u914d\u7f6e\u6210\u529f<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/setting-success.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/setting-success.jpg\" alt=\"\u914d\u7f6e\u6210\u529f\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u8bbe\u5907\u914d\u7f6e\">\u8bbe\u5907\u914d\u7f6e<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8fd4\u56de <code>\u70b9\u706f blinker<\/code> App \u4e3b\u9875\uff0c\u53ef\u770b\u5230\u8bbe\u5907\u5df2\u5728\u7ebf\uff0c\u70b9\u51fb\u8bbe\u5907\u8fdb\u5165\u914d\u7f6e\u9875\u9762\uff1b<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/app-device-online.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/app-device-online.jpg\" alt=\"\u8bbe\u5907\u5217\u8868\"\/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>\u70b9\u51fb\u8bbe\u5907 <code>\u7f16\u8f91<\/code> \u6309\u94ae\uff1b<\/li><\/ol>\n\n\n\n<p><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/device-edit-button.png\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><\/a>\uff1b<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>\u70b9\u51fb\u7f16\u8f91\u6309\u94ae\u540e\u4f1a\u8fdb\u5165\u7ec4\u4ef6\u7f16\u8f91\u72b6\u6001\uff0c\u70b9\u51fb\u5e95\u90e8\u7ec4\u4ef6\u5217\u8868\u7684 <code>\u989c\u8272<\/code> \u7ec4\u4ef6\uff0c\u6dfb\u52a0\u5230\u754c\u9762\u4e2d\uff0c\u7136\u540e\u70b9\u51fb\u754c\u9762\u4e2d\u65b0\u589e\u7684 <code>\u989c\u8272<\/code> \u7ec4\u4ef6\u8fdb\u5165\u7ec4\u4ef6\u7f16\u8f91\u754c\u9762\uff0c\u5c06 <code>\u6570\u636e\u952e\u540d<\/code> \u6539\u4e3a <code>RGB<\/code>\uff0c\u70b9\u51fb <code>\u4fdd\u5b58<\/code>\uff1b<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/component-edit.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/component-edit.jpg\" alt=\"\u7ec4\u4ef6\u7f16\u8f91\"\/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>\u7f16\u8f91\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 <code>\u9501\u5b9a<\/code> \u6309\u94ae\u5b8c\u6210\u7f16\u8f91\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u63a7\u5236\u706f\u5e26\u4e86\u3002<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/device-edit-lock.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/device-edit-lock.jpg\" alt=\"\u4fdd\u5b58\u7f16\u8f91\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/device-details.jpg\" alt=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" title=\"\u4f7f\u7528ESP8266\u901a\u8fc7blinker\u63a7\u5236WS2812\u706f\u5e26--\u8f6c\u8f7d\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"https:\/\/public-image-lwh.oss-cn-shenzhen.aliyuncs.com\/es88266-ws2812b\/device-details.jpg\" alt=\"\u8bbe\u5907\u8be6\u60c5\"\/><\/a><\/figure>\n\n\n\n<p><strong>\u53c2\u8003<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/qq_36243942\/article\/details\/104854727?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u4f7f\u7528ESP8266\u63a5\u5165\u201c\u5929\u732b\u7cbe\u7075\u201d\u63a7\u5236\u4e03\u5f69\u706f\uff08WS2812\uff09\u7684\u989c\u8272\/\u4eae\u5ea6-\u5f00\u6e90<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/diandeng.tech\/doc\/getting-start-8266\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u70b9\u706f\u79d1\u6280-\u4f7f\u7528esp8266 &amp; WiFi\u63a5\u5165<\/a><\/p>\n\n\n\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/www.lwhweb.com\/posts\/46057\/\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/www.lwhweb.com\/posts\/46057\/<\/a><\/p>\n<button class=\"simplefavorite-button\" data-postid=\"983\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u786c\u4ef6\u53ca\u786c\u4ef6\u63a5\u7ebf\u56fe \u786c\u4ef6\u5217\u8868\uff1a ESP8266 NodeMCU WS2812B \u706f\u5e26(60\u9897) \u675c\u90a6\u7ebf\uff08\u6bcd\u5bf9\u6bcd\uff093\u6761 \u63a5\u7ebf\u56fe Ard &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11],"tags":[],"class_list":["post-983","post","type-post","status-publish","format-standard","hentry","category-10","category-11"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=983"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/983\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}