用esp8266的开发板带ws2812的灯带-Arduino中文社区 - Powered by Discuz! Archiver

lijiazidi 发表于 2022-3-10 11:09

用esp8266的开发板带ws2812的灯带

用D3引脚编译可以成功,但是用D6引脚就会显示编译失败,这是为什么,求大佬指点

coloz 发表于 2022-3-10 13:30

提问截图请截全。下面通常都会写出报错原因。

lijiazidi 发表于 2022-3-10 13:38

coloz 发表于 2022-3-10 13:30
提问截图请截全。下面通常都会写出报错原因。

Arduino:1.8.13 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















In file included from D:\默认存储位置\项目\爆改车间_光绘棒_Web_0.2\Light_web\Light_web.ino:12:0:

C:\Users\boy\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003

#    pragma message "FastLED version 3.003.003"

                     ^

In file included from C:\Users\boy\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,

               from D:\默认存储位置\项目\爆改车间_光绘棒_Web_0.2\Light_web\Light_web.ino:12:

C:\Users\boy\Documents\Arduino\libraries\FastLED/fastspi.h:130:23: note: #pragma message: No hardware SPI pins defined.All SPI access will default to bitbanged output

#      pragma message "No hardware SPI pins defined.All SPI access will default to bitbanged output"

                     ^

In file included from C:\Users\boy\Documents\Arduino\libraries\TFT_eSPI-master/TFT_eSPI.h:863:0,

               from D:\默认存储位置\项目\爆改车间_光绘棒_Web_0.2\Light_web\Light_web.ino:56:

C:\Users\boy\Documents\Arduino\libraries\TFT_eSPI-master/Extensions/Smooth_font.h:47:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\boy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

   fs::FS   &fontFS= SPIFFS;

                     ^

In file included from C:\Users\boy\Documents\Arduino\libraries\FastLED/FastLED.h:48:0,

               from D:\默认存储位置\项目\爆改车间_光绘棒_Web_0.2\Light_web\Light_web.ino:12:

C:\Users\boy\Documents\Arduino\libraries\FastLED/fastpin.h: In instantiation of 'class FastPin<12u>':

C:\Users\boy\Documents\Arduino\libraries\FastLED/platforms/esp/8266/clockless_esp8266.h:21:49:   required from 'class ClocklessController<12, 20, 50, 30, (EOrder)66u, 0, false, 50>'

C:\Users\boy\Documents\Arduino\libraries\FastLED/chipsets.h:582:7:   required from 'class WS2812Controller800Khz<12u, (EOrder)66u>'

C:\Users\boy\Documents\Arduino\libraries\FastLED/FastLED.h:105:52:   required from 'class WS2812B<12u, (EOrder)66u>'

C:\Users\boy\Documents\Arduino\libraries\FastLED/FastLED.h:302:39:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) '

D:\默认存储位置\项目\爆改车间_光绘棒_Web_0.2\Light_web\Light_web.ino:146:62:   required from here

C:\Users\boy\Documents\Arduino\libraries\FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified

static_assert(validpin(), "Invalid pin specified");

^

"FastLED.h" 对应多个库

已使用: C:\Users\boy\Documents\Arduino\libraries\FastLED

未使用:C:\Users\boy\Documents\Arduino\libraries\FastLED-master

"SD.h" 对应多个库

已使用: C:\Users\boy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SD

未使用:D:\arduino\libraries\SD

exit status 1

为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。

下载 https://downloads.arduino.cc/packages/package_index.json 时出错



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

lijiazidi 发表于 2022-3-10 13:43

coloz 发表于 2022-3-10 13:30
提问截图请截全。下面通常都会写出报错原因。

报错信息就是这,看不懂:'(

coloz 发表于 2022-3-10 16:42

lijiazidi 发表于 2022-3-10 13:43
报错信息就是这,看不懂

FastLED报错,看看FastLED例程,了解下使用方法

xk964103279 发表于 2022-6-8 21:54

你好楼主。我现在也在搞这个,但是我目前遇到的问题是8266连接上网络了 但是IP网址打不开,显示拒绝访问,你有遇到过吗?
页: [1]
查看完整版本: 用esp8266的开发板带ws2812的灯带