FastLED Bibliothek mit Wemos D1 mini

Hallo,
ich möchte meinen Code, der für zwei LED Stripes und mit der FastLED Bibliothek für einen Arduino Uno geschrieben wurde, nun auf einen Wemos D1 mini "portieren".
Beim Kompolieren erhalte ich folgende Fehlermeldung:
Arduino: 1.8.19 (Windows 10), Board: "LOLIN(WEMOS) D1 mini Lite, 80 MHz, Flash, Disabled, 1M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/fastled_esp8266.h:9:0,

                 from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms.h:40,

                 from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/FastLED.h:62,

                 from C:\Users\Nutzer\AppData\Local\Temp\arduino_modified_sketch_788206\EAEa_LEDStripeCtl.ino:4:

D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/clockless_esp8266.h:85:18: error: expected ';' at end of member declaration

  static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER> pixels) {

                  ^

D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/clockless_esp8266.h:85:77: error: ISO C++ forbids declaration of 'showRGBInternal' with no type [-fpermissive]

  static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER> pixels) {

                                                                             ^

In file included from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/fastled_esp8266.h:10:0,

                 from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms.h:40,

                 from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/FastLED.h:62,

                 from C:\Users\Nutzer\AppData\Local\Temp\arduino_modified_sketch_788206\EAEa_LEDStripeCtl.ino:4:

D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/clockless_block_esp8266.h:111:18: error: expected ';' at end of member declaration

  static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {

                  ^

D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/platforms/esp/8266/clockless_block_esp8266.h:111:99: error: ISO C++ forbids declaration of 'showRGBInternal' with no type [-fpermissive]

  static uint32_t IRAM_ATTR showRGBInternal(PixelController<RGB_ORDER, LANES, PORT_MASK> &allpixels) {

                                                                                                   ^

In file included from D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/FastLED.h:75:0,

                 from C:\Users\Nutzer\AppData\Local\Temp\arduino_modified_sketch_788206\EAEa_LEDStripeCtl.ino:4:

D:\OneDrive\Dokumente\Arduino\libraries\FastLED\src/fastspi.h:157: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"

                       ^

exit status 1

auch die Angabe welches Pin Layout verwendet werden soll, noch vor der Einbindung der Bibliothek hat nicht geholfen: ESP8266 notes · FastLED/FastLED Wiki · GitHub
Als Board Defintion verwende ich die v2.5.0 und bin damit über der geforderten v2.2.0

Jetzt hänge ich etwas in der Luft und hoffe auf eure Erfahrungen. Habt ihr eine Idee, den Code auf den Wemos zu bekommen?

Danke!

Also dieser Beispielcode kompiliert bei mir.

#define FASTLED_INTERNAL
#include <FastLED.h>



#define DATA_PIN        13
#define NUM_LEDS 12

enum farbe {BLACK,RED,GREEN,BLUE, YELLOW, CYAN,PURPLE,WHITE};
const CRGB colors[] = {{0x00,0x00,0x00}, {0xFF,0x00,0x00}, {0x00,0xFF,0x00}, {0x00,0x00,0xFF}, 
                        {0xFF,0xFF,0x00}, {0x00,0xFF,0xFF}, {0xFF,0x00,0xFF}, {0xFF,0xFF,0xFF}
                       };
const byte anzColor = sizeof(colors)/sizeof(colors[0]);

CRGB leds[NUM_LEDS];


void setup() {
  Serial.begin(115200);
  Serial.println("\nStart");
  FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
	FastLED.setBrightness(10);
  for(byte i=0; i<anzColor;i++) {
	  FastLED.showColor(colors[i]);
		delay(1000);
	}
	FastLED.showColor(colors[0]);
}  

void loop() {

}

Eregebnis:

. Variables and constants in RAM (global, static), used 28260 / 80192 bytes (35%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ DATA     1496     initialized variables
╠══ RODATA   932      constants       
╚══ BSS      25832    zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59759 / 65536 bytes (91%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ ICACHE   32768    reserved space for flash instruction cache
╚══ IRAM     26991    code in IRAM    
. Code in flash (default, ICACHE_FLASH_ATTR), used 238292 / 1048576 bytes (22%)
║   SEGMENT  BYTES    DESCRIPTION
╚══ IROM     238292   code in flash   
Bibliothek FastLED in Version 3.6.0 im Ordner: E:\arduino-1.8.19_3.1.2\portable\sketchbook\libraries\FastLED  wird verwendet

Gruß Tommy

Hallo Tommy,

ich habe dein Code-Beispiel 1:1 übernommen und erhalte jetzt eine andere Fehlermeldung.
Habe nochmal nachgesehen, die Board Defintion ist mit der v.2.5.0 aktuell sowie auch die FastLED mit v3.6.

Wenn Du etwas zu Fehlermeldungen wissen willst, dann füge die Fehlermeldung als Text in Codetags ein.
ESP8266 Core Version 3.1.2 (das ist die aktuelle Version), FastLED 3.6, IDE 1.8.19 portable --> Keine Fehler.

Gruß Tommy

das Update auf v3.1.2 hat geholfen.
@Tommy56 Danke für deine Hilfe!

Schön, dass es funktioniert und danke für die Rückmeldung.

Gruß Tommy

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.