ESP32 使用fast LED库报错-Arduino中文社区 - Powered by Discuz! Archiver

tarothp 发表于 2021-10-10 23:20

ESP32 使用fast LED库报错

ESP32 使用FastLED 库报错,提示不支持。但github上说支持ESP32平台。

XlinliY.Zhang 发表于 2021-10-11 13:11

FastLED对IDE版本有要求,要1.8.10以上
另外,你报错截图呢,单这句话算命也算不出来问题

tarothp 发表于 2021-10-11 13:36

本帖最后由 tarothp 于 2021-10-11 13:37 编辑

XlinliY.Zhang 发表于 2021-10-11 13:11
FastLED对IDE版本有要求,要1.8.10以上
另外,你报错截图呢,单这句话算命也算不出来问题 ...
In file included from d:\Project\Arduino_Project\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
               from d:\Project\Arduino_Project\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
               from d:\Project\Arduino_Project\libraries\FastLED\src/platforms.h:36,
               from d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:52,
               from C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:6:
C:\Users\tarot\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:16:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
#warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
^~~~~~~
In file included from C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:6:
d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
#    pragma message "FastLED version 3.004.000"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:65,
               from C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:6:
d:\Project\Arduino_Project\libraries\FastLED\src/fastspi.h:135: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 d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:48,
               from C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:6:
d:\Project\Arduino_Project\libraries\FastLED\src/fastpin.h: In instantiation of 'class FastPin<10>':
d:\Project\Arduino_Project\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:306:23:   required from 'class ClocklessController<10, 60, 150, 90, (EOrder)66, 0, false, 5>'
d:\Project\Arduino_Project\libraries\FastLED\src/chipsets.h:578:7:   required from 'class WS2812Controller800Khz<10, (EOrder)66>'
d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:92:34:   required from 'class NEOPIXEL<10>'
d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:314:28:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) '
C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:16:60:   required from here
d:\Project\Arduino_Project\libraries\FastLED\src/fastpin.h:210:24: error: static assertion failed: Invalid pin specified
static_assert(validpin(), "Invalid pin specified");
                ~~~~~~~~^~
d:\Project\Arduino_Project\libraries\FastLED\src/fastpin.h: In instantiation of 'class FastPin<11>':
d:\Project\Arduino_Project\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:306:23:   required from 'class ClocklessController<11, 60, 150, 90, (EOrder)66, 0, false, 5>'
d:\Project\Arduino_Project\libraries\FastLED\src/chipsets.h:578:7:   required from 'class WS2812Controller800Khz<11, (EOrder)66>'
d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:92:34:   required from 'class NEOPIXEL<11>'
d:\Project\Arduino_Project\libraries\FastLED\src/FastLED.h:314:28:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) '
C:\Users\tarot\AppData\Local\Temp\.arduinoIDE-unsaved2021911-7960-l7z1cf.b5ly9\ArrayOfLedArrays\ArrayOfLedArrays.ino:19:60:   required from here
d:\Project\Arduino_Project\libraries\FastLED\src/fastpin.h:210:24: error: static assertion failed: Invalid pin specified
Compilation error: Error: 13 INTERNAL: exit status 1
    这个是错误报警。

XlinliY.Zhang 发表于 2021-10-11 16:15

他说你指定的引脚无效

tarothp 发表于 2021-10-11 23:44

XlinliY.Zhang 发表于 2021-10-11 16:15
他说你指定的引脚无效

所有引脚都试过了,都无法编译

topdog 发表于 2021-10-11 23:48

https://github.com/eshkrab/FastLED-esp32
页: [1]
查看完整版本: ESP32 使用fast LED库报错