Advertisement
Guest User

Untitled

a guest
Jan 25th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.00 KB | None | 0 0
  1. I try to run the mentioned test code in the readme:
  2.  
  3. ```c
  4. #include <FastLED.h>
  5. #define NUM_LEDS 60
  6. CRGB leds[NUM_LEDS];
  7. void setup() { FastLED.addLeds<NEOPIXEL, 6>(leds, NUM_LEDS); }
  8. void loop() {
  9.     leds[0] = CRGB::White; FastLED.show(); delay(30);
  10.     leds[0] = CRGB::Black; FastLED.show(); delay(30);
  11. }
  12. ```
  13.  
  14. But I only get this output (in web editor)
  15.  
  16. ```
  17. /usr/local/bin/arduino-cli compile --fqbn esp8266:esp8266:generic:CrystalFreq=26,FlashFreq=40,FlashMode=dout,ResetMethod=ck,baud=115200,dbg=Disabled,eesz=512K,exception=disabled,ip=lm2f,led=2,lvl=None____,vt=flash,wipe=none,xtal=80 --build-cache-path /tmp --output-dir /tmp/1550360353/build --build-path /tmp/arduino-build-0DB3197658358C37F42AD4B21DA3F26A /tmp/1550360353/sketch_jan3a
  18.  
  19. In file included from /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/fastled_esp8266.h:9:0,
  20.  
  21. from /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms.h:40,
  22.  
  23. from /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:62,
  24.  
  25. from /tmp/1550360353/sketch_jan3a/sketch_jan3a.ino:1:
  26.  
  27. /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/clockless_esp8266.h:85:18: error: expected ';' at end of member declaration
  28.  
  29. static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER> pixels) {
  30.  
  31. ^
  32.  
  33. /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/clockless_esp8266.h:85:77: error: ISO C++ forbids declaration of 'showRGBInternal' with no type [-fpermissive]
  34.  
  35. static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER> pixels) {
  36.  
  37. ^
  38.  
  39. In file included from /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/fastled_esp8266.h:10:0,
  40.  
  41. from /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms.h:40,
  42.  
  43. from /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:62,
  44.  
  45. from /tmp/1550360353/sketch_jan3a/sketch_jan3a.ino:1:
  46.  
  47. /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/clockless_block_esp8266.h:111:18: error: expected ';' at end of member declaration
  48.  
  49. static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {
  50.  
  51. ^
  52.  
  53. /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/clockless_block_esp8266.h:111:99: error: ISO C++ forbids declaration of 'showRGBInternal' with no type [-fpermissive]
  54.  
  55. static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {
  56.  
  57. ^
  58.  
  59. In file included from /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:75:0,
  60.  
  61. from /tmp/1550360353/sketch_jan3a/sketch_jan3a.ino:1:
  62.  
  63. /home/builder/Arduino/libraries/fastled_3_6_0/src/fastspi.h:157:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
  64.  
  65. # pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
  66.  
  67. ^
  68.  
  69. In file included from /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:58:0,
  70.  
  71. from /tmp/1550360353/sketch_jan3a/sketch_jan3a.ino:1:
  72.  
  73. /home/builder/Arduino/libraries/fastled_3_6_0/src/fastpin.h: In instantiation of 'class FastPin<6u>':
  74.  
  75. /home/builder/Arduino/libraries/fastled_3_6_0/src/platforms/esp/8266/clockless_esp8266.h:21:49: required from 'class ClocklessController<6, 20, 50, 30, (EOrder)66u, 0, false, 85>'
  76.  
  77. /home/builder/Arduino/libraries/fastled_3_6_0/src/chipsets.h:654:7: required from 'class WS2812Controller800Khz<6u, (EOrder)66u>'
  78.  
  79. /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:119:34: required from 'class NEOPIXEL<6u>'
  80.  
  81. /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:366:28: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = NEOPIXEL; unsigned char DATA_PIN = 6u]'
  82.  
  83. /tmp/1550360353/sketch_jan3a/sketch_jan3a.ino:4:59: required from here
  84.  
  85. /home/builder/Arduino/libraries/fastled_3_6_0/src/fastpin.h:261:2: error: static assertion failed: Invalid pin specified
  86.  
  87. static_assert(validpin(), "Invalid pin specified");
  88.  
  89. ^
  90. ```
  91.  
  92. Error during build: exit status 1
  93.  
  94. Any idea how to solve this?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement