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!