esp8266+ws2812+blinker wifi远程控制-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4026|回复: 7

[分享] esp8266+ws2812+blinker wifi远程控制

[复制链接]
发表于 2020-10-15 22:29 | 显示全部楼层 |阅读模式
本帖最后由 lslcxlsl 于 2021-2-23 15:05 编辑

ws2812氛围灯
esp8266+ws2812+blinker wifi远程控制  

使用的是blinker的实例代码,没有啥修改
#define PIN D7  这个是接口
#define NUMPIXELS 15  这个是灯珠数量

在app上顶一个取色器,RGBKey
就这么简单
  1. *
  2. * Download latest Blinker library here:
  3. * https://github.com/blinker-iot/blinker-library/archive/master.zip
  4. *
  5. *
  6. * Blinker is a cross-hardware, cross-platform solution for the IoT.
  7. * It provides APP, device and server support,
  8. * and uses public cloud services for data transmission and storage.
  9. * It can be used in smart home, data monitoring and other fields
  10. * to help users build Internet of Things projects better and faster.
  11. *
  12. * Make sure installed 2.5.0 or later ESP8266/Arduino package,
  13. * if use ESP8266 with Blinker.
  14. * https://github.com/esp8266/Arduino/releases
  15. *
  16. * Make sure installed 1.0.2 or later ESP32/Arduino package,
  17. * if use ESP32 with Blinker.
  18. * https://github.com/espressif/arduino-esp32/releases
  19. *
  20. * Docs: https://diandeng.tech/doc
  21. *       https://github.com/blinker-iot/blinker-doc/wiki
  22. *
  23. * *****************************************************************
  24. *
  25. * Blinker 库下载地址:
  26. * https://github.com/blinker-iot/blinker-library/archive/master.zip
  27. *
  28. * Blinker 是一套跨硬件、跨平台的物联网解决方案,提供APP端、设备端、
  29. * 服务器端支持,使用公有云服务进行数据传输存储。可用于智能家居、
  30. * 数据监测等领域,可以帮助用户更好更快地搭建物联网项目。
  31. *
  32. * 如果使用 ESP8266 接入 Blinker,
  33. * 请确保安装了 2.5.0 或更新的 ESP8266/Arduino 支持包。
  34. * https://github.com/esp8266/Arduino/releases
  35. *
  36. * 如果使用 ESP32 接入 Blinker,
  37. * 请确保安装了 1.0.2 或更新的 ESP32/Arduino 支持包。
  38. * https://github.com/espressif/arduino-esp32/releases
  39. *
  40. * 文档: https://diandeng.tech/doc
  41. *       https://github.com/blinker-iot/blinker-doc/wiki
  42. *
  43. * *****************************************************************/

  44. #define BLINKER_WIFI

  45. #include <Blinker.h>

  46. char auth[] = "1c87d2335fc8";
  47. char ssid[] = "abc";
  48. char pswd[] = "chenxu123";

  49. // Download Adafruit_NeoPixel library here:
  50. // https://github.com/adafruit/Adafruit_NeoPixel
  51. #include <Adafruit_NeoPixel.h>
  52. #ifdef __AVR__
  53.   #include <avr/power.h>
  54. #endif

  55. #define PIN            D7
  56. #define NUMPIXELS      15
  57. Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

  58. #define RGB_1 "RGBKey"

  59. BlinkerRGB WS2812(RGB_1);

  60. void ws2812_callback(uint8_t r_value, uint8_t g_value, uint8_t b_value, uint8_t bright_value)
  61. {
  62.     digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
  63.     BLINKER_LOG("R value: ", r_value);
  64.     BLINKER_LOG("G value: ", g_value);
  65.     BLINKER_LOG("B value: ", b_value);
  66.     BLINKER_LOG("Rrightness value: ", bright_value);

  67.     pixels.setBrightness(bright_value);

  68.     for(int i = 0; i < NUMPIXELS; i++){
  69.         pixels.setPixelColor(i, r_value, g_value, b_value);
  70.     }
  71.     pixels.show();
  72. }

  73. void setup()
  74. {
  75.     Serial.begin(115200);
  76.     BLINKER_DEBUG.stream(Serial);

  77.     pinMode(LED_BUILTIN, OUTPUT);
  78.     digitalWrite(LED_BUILTIN, LOW);

  79.     Blinker.begin(auth, ssid, pswd);

  80.     pixels.begin();

  81.     WS2812.attach(ws2812_callback);
  82. }

  83. void loop()
  84. {
  85.     Blinker.run();
  86. }
复制代码
IMG_20210223_144358.jpg IMG_20210223_144320_副本_副本.jpg IMG_20201015_222258.jpg arduino ide配置.png
WS2812_WiFi2021_2_23_.zip (1.49 KB, 下载次数: 62)


发表于 2020-12-20 16:55 | 显示全部楼层
楼主请问 如果超过50个灯就出现乱码是什么原因啊
发表于 2021-1-11 18:41 | 显示全部楼层
Arduino:1.8.13 (Windows 7), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















sketch_jan11c:12:24: error: too many decimal points in number

sketch_jan11c:16:24: error: too many decimal points in number

sketch_jan11c:25:2: error: stray '\345' in program

sketch_jan11c:25:2: error: stray '\272' in program

sketch_jan11c:25:2: error: stray '\223' in program

sketch_jan11c:25:2: error: stray '\344' in program

sketch_jan11c:25:2: error: stray '\270' in program

sketch_jan11c:25:2: error: stray '\213' in program

sketch_jan11c:25:2: error: stray '\350' in program

sketch_jan11c:25:2: error: stray '\275' in program

sketch_jan11c:25:2: error: stray '\275' in program

sketch_jan11c:25:2: error: stray '\345' in program

sketch_jan11c:25:2: error: stray '\234' in program

sketch_jan11c:25:2: error: stray '\260' in program

sketch_jan11c:25:2: error: stray '\345' in program

sketch_jan11c:25:2: error: stray '\235' in program

sketch_jan11c:25:2: error: stray '\200' in program

sketch_jan11c:28:2: error: stray '\346' in program

sketch_jan11c:28:2: error: stray '\230' in program

sketch_jan11c:28:2: error: stray '\257' in program

sketch_jan11c:28:2: error: stray '\344' in program

sketch_jan11c:28:2: error: stray '\270' in program

sketch_jan11c:28:2: error: stray '\200' in program

sketch_jan11c:28:2: error: stray '\345' in program

sketch_jan11c:28:2: error: stray '\245' in program

sketch_jan11c:28:2: error: stray '\227' in program

sketch_jan11c:28:2: error: stray '\350' in program

sketch_jan11c:28:2: error: stray '\267' in program

sketch_jan11c:28:2: error: stray '\250' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\241' in program

sketch_jan11c:28:2: error: stray '\254' in program

sketch_jan11c:28:2: error: stray '\344' in program

sketch_jan11c:28:2: error: stray '\273' in program

sketch_jan11c:28:2: error: stray '\266' in program

sketch_jan11c:28:2: error: stray '\343' in program

sketch_jan11c:28:2: error: stray '\200' in program

sketch_jan11c:28:2: error: stray '\201' in program

sketch_jan11c:28:2: error: stray '\350' in program

sketch_jan11c:28:2: error: stray '\267' in program

sketch_jan11c:28:2: error: stray '\250' in program

sketch_jan11c:28:2: error: stray '\345' in program

sketch_jan11c:28:2: error: stray '\271' in program

sketch_jan11c:28:2: error: stray '\263' in program

sketch_jan11c:28:2: error: stray '\345' in program

sketch_jan11c:28:2: error: stray '\217' in program

sketch_jan11c:28:2: error: stray '\260' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\232' in program

sketch_jan11c:28:2: error: stray '\204' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\211' in program

sketch_jan11c:28:2: error: stray '\251' in program

sketch_jan11c:28:2: error: stray '\350' in program

sketch_jan11c:28:2: error: stray '\201' in program

sketch_jan11c:28:2: error: stray '\224' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\275' in program

sketch_jan11c:28:2: error: stray '\221' in program

sketch_jan11c:28:2: error: stray '\350' in program

sketch_jan11c:28:2: error: stray '\247' in program

sketch_jan11c:28:2: error: stray '\243' in program

sketch_jan11c:28:2: error: stray '\345' in program

sketch_jan11c:28:2: error: stray '\206' in program

sketch_jan11c:28:2: error: stray '\263' in program

sketch_jan11c:28:2: error: stray '\346' in program

sketch_jan11c:28:2: error: stray '\226' in program

sketch_jan11c:28:2: error: stray '\271' in program

sketch_jan11c:28:2: error: stray '\346' in program

sketch_jan11c:28:2: error: stray '\241' in program

sketch_jan11c:28:2: error: stray '\210' in program

sketch_jan11c:28:2: error: stray '\357' in program

sketch_jan11c:28:2: error: stray '\274' in program

sketch_jan11c:28:2: error: stray '\214' in program

sketch_jan11c:28:2: error: stray '\346' in program

sketch_jan11c:28:2: error: stray '\217' in program

sketch_jan11c:28:2: error: stray '\220' in program

sketch_jan11c:28:2: error: stray '\344' in program

sketch_jan11c:28:2: error: stray '\276' in program

sketch_jan11c:28:2: error: stray '\233' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\253' in program

sketch_jan11c:28:2: error: stray '\257' in program

sketch_jan11c:28:2: error: stray '\343' in program

sketch_jan11c:28:2: error: stray '\200' in program

sketch_jan11c:28:2: error: stray '\201' in program

sketch_jan11c:28:2: error: stray '\350' in program

sketch_jan11c:28:2: error: stray '\256' in program

sketch_jan11c:28:2: error: stray '\276' in program

sketch_jan11c:28:2: error: stray '\345' in program

sketch_jan11c:28:2: error: stray '\244' in program

sketch_jan11c:28:2: error: stray '\207' in program

sketch_jan11c:28:2: error: stray '\347' in program

sketch_jan11c:28:2: error: stray '\253' in program

sketch_jan11c:28:2: error: stray '\257' in program

sketch_jan11c:28:2: error: stray '\343' in program

sketch_jan11c:28:2: error: stray '\200' in program

sketch_jan11c:28:2: error: stray '\201' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\234' in program

sketch_jan11c:29:2: error: stray '\215' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\212' in program

sketch_jan11c:29:2: error: stray '\241' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\231' in program

sketch_jan11c:29:2: error: stray '\250' in program

sketch_jan11c:29:2: error: stray '\347' in program

sketch_jan11c:29:2: error: stray '\253' in program

sketch_jan11c:29:2: error: stray '\257' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\224' in program

sketch_jan11c:29:2: error: stray '\257' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\214' in program

sketch_jan11c:29:2: error: stray '\201' in program

sketch_jan11c:29:2: error: stray '\357' in program

sketch_jan11c:29:2: error: stray '\274' in program

sketch_jan11c:29:2: error: stray '\214' in program

sketch_jan11c:29:2: error: stray '\344' in program

sketch_jan11c:29:2: error: stray '\275' in program

sketch_jan11c:29:2: error: stray '\277' in program

sketch_jan11c:29:2: error: stray '\347' in program

sketch_jan11c:29:2: error: stray '\224' in program

sketch_jan11c:29:2: error: stray '\250' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\205' in program

sketch_jan11c:29:2: error: stray '\254' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\234' in program

sketch_jan11c:29:2: error: stray '\211' in program

sketch_jan11c:29:2: error: stray '\344' in program

sketch_jan11c:29:2: error: stray '\272' in program

sketch_jan11c:29:2: error: stray '\221' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\234' in program

sketch_jan11c:29:2: error: stray '\215' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\212' in program

sketch_jan11c:29:2: error: stray '\241' in program

sketch_jan11c:29:2: error: stray '\350' in program

sketch_jan11c:29:2: error: stray '\277' in program

sketch_jan11c:29:2: error: stray '\233' in program

sketch_jan11c:29:2: error: stray '\350' in program

sketch_jan11c:29:2: error: stray '\241' in program

sketch_jan11c:29:2: error: stray '\214' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\225' in program

sketch_jan11c:29:2: error: stray '\260' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\215' in program

sketch_jan11c:29:2: error: stray '\256' in program

sketch_jan11c:29:2: error: stray '\344' in program

sketch_jan11c:29:2: error: stray '\274' in program

sketch_jan11c:29:2: error: stray '\240' in program

sketch_jan11c:29:2: error: stray '\350' in program

sketch_jan11c:29:2: error: stray '\276' in program

sketch_jan11c:29:2: error: stray '\223' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\255' in program

sketch_jan11c:29:2: error: stray '\230' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\202' in program

sketch_jan11c:29:2: error: stray '\250' in program

sketch_jan11c:29:2: error: stray '\343' in program

sketch_jan11c:29:2: error: stray '\200' in program

sketch_jan11c:29:2: error: stray '\202' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\217' in program

sketch_jan11c:29:2: error: stray '\257' in program

sketch_jan11c:29:2: error: stray '\347' in program

sketch_jan11c:29:2: error: stray '\224' in program

sketch_jan11c:29:2: error: stray '\250' in program

sketch_jan11c:29:2: error: stray '\344' in program

sketch_jan11c:29:2: error: stray '\272' in program

sketch_jan11c:29:2: error: stray '\216' in program

sketch_jan11c:29:2: error: stray '\346' in program

sketch_jan11c:29:2: error: stray '\231' in program

sketch_jan11c:29:2: error: stray '\272' in program

sketch_jan11c:29:2: error: stray '\350' in program

sketch_jan11c:29:2: error: stray '\203' in program

sketch_jan11c:29:2: error: stray '\275' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\256' in program

sketch_jan11c:29:2: error: stray '\266' in program

sketch_jan11c:29:2: error: stray '\345' in program

sketch_jan11c:29:2: error: stray '\261' in program

sketch_jan11c:29:2: error: stray '\205' in program

sketch_jan11c:29:2: error: stray '\343' in program

sketch_jan11c:29:2: error: stray '\200' in program

sketch_jan11c:29:2: error: stray '\201' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\225' in program

sketch_jan11c:30:2: error: stray '\260' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\215' in program

sketch_jan11c:30:2: error: stray '\256' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\233' in program

sketch_jan11c:30:2: error: stray '\221' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\265' in program

sketch_jan11c:30:2: error: stray '\213' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\255' in program

sketch_jan11c:30:2: error: stray '\211' in program

sketch_jan11c:30:2: error: stray '\351' in program

sketch_jan11c:30:2: error: stray '\242' in program

sketch_jan11c:30:2: error: stray '\206' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\237' in program

sketch_jan11c:30:2: error: stray '\237' in program

sketch_jan11c:30:2: error: stray '\357' in program

sketch_jan11c:30:2: error: stray '\274' in program

sketch_jan11c:30:2: error: stray '\214' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\217' in program

sketch_jan11c:30:2: error: stray '\257' in program

sketch_jan11c:30:2: error: stray '\344' in program

sketch_jan11c:30:2: error: stray '\273' in program

sketch_jan11c:30:2: error: stray '\245' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\270' in program

sketch_jan11c:30:2: error: stray '\256' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\212' in program

sketch_jan11c:30:2: error: stray '\251' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\224' in program

sketch_jan11c:30:2: error: stray '\250' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\210' in program

sketch_jan11c:30:2: error: stray '\267' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\233' in program

sketch_jan11c:30:2: error: stray '\264' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\245' in program

sketch_jan11c:30:2: error: stray '\275' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\233' in program

sketch_jan11c:30:2: error: stray '\264' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\277' in program

sketch_jan11c:30:2: error: stray '\253' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\234' in program

sketch_jan11c:30:2: error: stray '\260' in program

sketch_jan11c:30:2: error: stray '\346' in program

sketch_jan11c:30:2: error: stray '\220' in program

sketch_jan11c:30:2: error: stray '\255' in program

sketch_jan11c:30:2: error: stray '\345' in program

sketch_jan11c:30:2: error: stray '\273' in program

sketch_jan11c:30:2: error: stray '\272' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\211' in program

sketch_jan11c:30:2: error: stray '\251' in program

sketch_jan11c:30:2: error: stray '\350' in program

sketch_jan11c:30:2: error: stray '\201' in program

sketch_jan11c:30:2: error: stray '\224' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\275' in program

sketch_jan11c:30:2: error: stray '\221' in program

sketch_jan11c:30:2: error: stray '\351' in program

sketch_jan11c:30:2: error: stray '\241' in program

sketch_jan11c:30:2: error: stray '\271' in program

sketch_jan11c:30:2: error: stray '\347' in program

sketch_jan11c:30:2: error: stray '\233' in program

sketch_jan11c:30:2: error: stray '\256' in program

sketch_jan11c:30:2: error: stray '\343' in program

sketch_jan11c:30:2: error: stray '\200' in program

sketch_jan11c:30:2: error: stray '\202' in program

sketch_jan11c:32:2: error: stray '\345' in program

sketch_jan11c:32:2: error: stray '\246' in program

sketch_jan11c:32:2: error: stray '\202' in program

sketch_jan11c:32:2: error: stray '\346' in program

sketch_jan11c:32:2: error: stray '\236' in program

sketch_jan11c:32:2: error: stray '\234' in program

sketch_jan11c:32:2: error: stray '\344' in program

sketch_jan11c:32:2: error: stray '\275' in program

sketch_jan11c:32:2: error: stray '\277' in program

sketch_jan11c:32:2: error: stray '\347' in program

sketch_jan11c:32:2: error: stray '\224' in program

sketch_jan11c:32:2: error: stray '\250' in program

sketch_jan11c:32:2: error: stray '\346' in program

sketch_jan11c:32:2: error: stray '\216' in program

sketch_jan11c:32:2: error: stray '\245' in program

sketch_jan11c:32:2: error: stray '\345' in program

sketch_jan11c:32:2: error: stray '\205' in program

sketch_jan11c:32:2: error: stray '\245' in program

sketch_jan11c:33:2: error: stray '\350' in program

sketch_jan11c:33:2: error: stray '\257' in program

sketch_jan11c:33:2: error: stray '\267' in program

sketch_jan11c:33:2: error: stray '\347' in program

sketch_jan11c:33:2: error: stray '\241' in program

sketch_jan11c:33:2: error: stray '\256' in program

sketch_jan11c:33:2: error: stray '\344' in program

sketch_jan11c:33:2: error: stray '\277' in program

sketch_jan11c:33:2: error: stray '\235' in program

sketch_jan11c:33:2: error: stray '\345' in program

sketch_jan11c:33:2: error: stray '\256' in program

sketch_jan11c:33:2: error: stray '\211' in program

sketch_jan11c:33:2: error: stray '\350' in program

sketch_jan11c:33:2: error: stray '\243' in program

sketch_jan11c:33:2: error: stray '\205' in program

sketch_jan11c:33:2: error: stray '\344' in program

sketch_jan11c:33:2: error: stray '\272' in program

sketch_jan11c:33:2: error: stray '\206' in program

sketch_jan11c:33:23: error: too many decimal points in number

sketch_jan11c:33:2: error: stray '\346' in program

sketch_jan11c:33:2: error: stray '\210' in program

sketch_jan11c:33:2: error: stray '\226' in program

sketch_jan11c:33:2: error: stray '\346' in program

sketch_jan11c:33:2: error: stray '\233' in program

sketch_jan11c:33:2: error: stray '\264' in program

sketch_jan11c:33:2: error: stray '\346' in program

sketch_jan11c:33:2: error: stray '\226' in program

sketch_jan11c:33:2: error: stray '\260' in program

sketch_jan11c:33:2: error: stray '\347' in program

sketch_jan11c:33:2: error: stray '\232' in program

sketch_jan11c:33:2: error: stray '\204' in program

sketch_jan11c:33:2: error: stray '\346' in program

sketch_jan11c:33:2: error: stray '\224' in program

sketch_jan11c:33:2: error: stray '\257' in program

sketch_jan11c:33:2: error: stray '\346' in program

sketch_jan11c:33:2: error: stray '\214' in program

sketch_jan11c:33:2: error: stray '\201' in program

sketch_jan11c:33:2: error: stray '\345' in program

sketch_jan11c:33:2: error: stray '\214' in program

sketch_jan11c:33:2: error: stray '\205' in program

sketch_jan11c:33:2: error: stray '\343' in program

sketch_jan11c:33:2: error: stray '\200' in program

sketch_jan11c:33:2: error: stray '\202' in program

sketch_jan11c:36:2: error: stray '\345' in program

sketch_jan11c:36:2: error: stray '\246' in program

sketch_jan11c:36:2: error: stray '\202' in program

sketch_jan11c:36:2: error: stray '\346' in program

sketch_jan11c:36:2: error: stray '\236' in program

sketch_jan11c:36:2: error: stray '\234' in program

sketch_jan11c:36:2: error: stray '\344' in program

sketch_jan11c:36:2: error: stray '\275' in program

sketch_jan11c:36:2: error: stray '\277' in program

sketch_jan11c:36:2: error: stray '\347' in program

sketch_jan11c:36:2: error: stray '\224' in program

sketch_jan11c:36:2: error: stray '\250' in program

sketch_jan11c:36:2: error: stray '\346' in program

sketch_jan11c:36:2: error: stray '\216' in program

sketch_jan11c:36:2: error: stray '\245' in program

sketch_jan11c:36:2: error: stray '\345' in program

sketch_jan11c:36:2: error: stray '\205' in program

sketch_jan11c:36:2: error: stray '\245' in program

sketch_jan11c:37:2: error: stray '\350' in program

sketch_jan11c:37:2: error: stray '\257' in program

sketch_jan11c:37:2: error: stray '\267' in program

sketch_jan11c:37:2: error: stray '\347' in program

sketch_jan11c:37:2: error: stray '\241' in program

sketch_jan11c:37:2: error: stray '\256' in program

sketch_jan11c:37:2: error: stray '\344' in program

sketch_jan11c:37:2: error: stray '\277' in program

sketch_jan11c:37:2: error: stray '\235' in program

sketch_jan11c:37:2: error: stray '\345' in program

sketch_jan11c:37:2: error: stray '\256' in program

sketch_jan11c:37:2: error: stray '\211' in program

sketch_jan11c:37:2: error: stray '\350' in program

sketch_jan11c:37:2: error: stray '\243' in program

sketch_jan11c:37:2: error: stray '\205' in program

sketch_jan11c:37:2: error: stray '\344' in program

sketch_jan11c:37:2: error: stray '\272' in program

sketch_jan11c:37:2: error: stray '\206' in program

sketch_jan11c:37:23: error: too many decimal points in number

sketch_jan11c:37:2: error: stray '\346' in program

sketch_jan11c:37:2: error: stray '\210' in program

sketch_jan11c:37:2: error: stray '\226' in program

sketch_jan11c:37:2: error: stray '\346' in program

sketch_jan11c:37:2: error: stray '\233' in program

sketch_jan11c:37:2: error: stray '\264' in program

sketch_jan11c:37:2: error: stray '\346' in program

sketch_jan11c:37:2: error: stray '\226' in program

sketch_jan11c:37:2: error: stray '\260' in program

sketch_jan11c:37:2: error: stray '\347' in program

sketch_jan11c:37:2: error: stray '\232' in program

sketch_jan11c:37:2: error: stray '\204' in program

sketch_jan11c:37:2: error: stray '\346' in program

sketch_jan11c:37:2: error: stray '\224' in program

sketch_jan11c:37:2: error: stray '\257' in program

sketch_jan11c:37:2: error: stray '\346' in program

sketch_jan11c:37:2: error: stray '\214' in program

sketch_jan11c:37:2: error: stray '\201' in program

sketch_jan11c:37:2: error: stray '\345' in program

sketch_jan11c:37:2: error: stray '\214' in program

sketch_jan11c:37:2: error: stray '\205' in program

sketch_jan11c:37:2: error: stray '\343' in program

sketch_jan11c:37:2: error: stray '\200' in program

sketch_jan11c:37:2: error: stray '\202' in program

sketch_jan11c:40:2: error: stray '\346' in program

sketch_jan11c:40:2: error: stray '\226' in program

sketch_jan11c:40:2: error: stray '\207' in program

sketch_jan11c:40:2: error: stray '\346' in program

sketch_jan11c:40:2: error: stray '\241' in program

sketch_jan11c:40:2: error: stray '\243' in program

sketch_jan11c:2:13: error: expected constructor, destructor, or type conversion before 'latest'

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41:0,

                 from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,

                 from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,

                 from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266mDNS\src/ESP8266mDNS_Legacy.h:46,

                 from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266mDNS\src/ESP8266mDNS.h:45,

                 from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:9,

                 from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10,

                 from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,

                 from E:\单片机\氛围灯\sketch_jan11a\sketch_jan11c\sketch_jan11c.ino:47:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:150:28: error: expected declaration before end of line

#pragma GCC diagnostic push

                            ^

exit status 1

too many decimal points in number



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
 楼主| 发表于 2021-1-30 18:07 | 显示全部楼层
韵野 发表于 2021-1-11 18:41
Arduino:1.8.13 (Windows 7), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can re ...

你这个应该是库识别错误,你把arduino的库重新添加下
发表于 2021-2-7 14:45 | 显示全部楼层
楼主:
请问如果定义8个灯,引脚设置为io2,灯带为什么是白色啊,而且app控制不了
发表于 2021-2-7 18:21 | 显示全部楼层
楼主您好,请问WS2812的控制引脚一定要固定某种类型的引脚吗,是不是具有ledc功能的引脚才能选为控制引脚
发表于 2021-2-12 18:22 | 显示全部楼层
fatal error: Adafruit_NeoPixel.h: No such file or directory
遇到了这个问题,请教下什么原因
 楼主| 发表于 2021-2-23 08:34 | 显示全部楼层
追晨沐阳 发表于 2021-2-12 18:22
fatal error: Adafruit_NeoPixel.h: No such file or directory
遇到了这个问题,请教下什么原因 ...

Adafruit_NeoPixel 这个库没有加
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 12:33 , Processed in 0.192951 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表