You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I got one of the XIAO BLE Sense - nRF52840 Boards and got compiling issues with fastLED.
My board library is the mbed-enabled version (Seeed nRF52 mbed-enabled board > Seeed XIAO BLE Sense - nRF52840) because it's the necessary board version to get the IMU to work properly.
Has anyone got this issue before?
I also tried the neopixel library, which works fine with this board.
I already looked through all nRF52 related issues here but had no luck.
Can I create a workaround where I "trick" fastLED into compiling without FastLED using any Hardware outputs?
I already got a lot of code from another project with a different platform/controller, and I want to use my old fastLED based code to fill the CRGB array and instead of using FastLED for the output, I copy the data to the neopixel structure.
Is this possible? And if so, how to implement this?
I also read about the planned implementation of a "null" platform, but also couldn't find more details about it.
Any help would be appreciated.
Best Regards
But if you want to use those mentioned functions in particular, then you may have to do it with this
workaround:
Use this core: Seeed Studio nRF52 Boards v1.1.1 (not mbed)
include the FastLED library
And create an CRGB leds[NUM_LEDS]; array for your LEDs
and don't initialize the hardware ( = avoid FastLED.addLeds... ) otherwise the build will fail.
Also include Adafruit_NeoPixel.h
and here you initialize
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
Or whatever LED controller you might have.
Then you can use the FastLED color functions on your CRGB array and copy the data from the virtual CRGB array to the Neopixel strip.
void fastToNeo(){for(int i = 0; i < NUM_LEDS; i++){ strip.setPixelColor(i, leds[i].r, leds[i].g, leds[i].b); }}
you can find my working nRF52 + FastLED & Neopixel project here
awesome, thanks! the idea is understandable, but the execution is rather complicated. Would it be possible for you to write a blink sketch for me? it would be highly appreciated!
i am reading through the whole project.. its awesome! definitely going to take some snippets of your code later... just trying to digest it as good as possible
But writing down a simple example to a workaround, that I found years ago, might be a great Idea anyway.
Just in case anyone else stumbles across this problem:
Here is a simple workaround to get FastLed working with the XIAO nRF52:
I'm about to push a fix that will make the compiler errors not be 20 pages long for this chipset. The problem is that we only define valid pins. Invalid pins go through a default FastPin template which is missing function/value definitions that the compiler is expecting will exist and you get a weird error that is very very long.
For the NRF52 series I'm introducing an invalid pin specification that binds to a specialization of the FastPin<> type that will static_assert in a clean way.
I suspect that you used one of these invalid pins and that this was causing your issue and it's not obvious what the fix is to the average user.
It's an invalid pin because it's used for UART RX. It probably works but kills external Serial output? Or maybe it just doesn't work at all. Hard to tell. Anyway, master now has this fix and it will compile and attempt to run. No idea if it will generate a core panic, but if it does that, you'll get a nice message on the output console that the pin isn't supported and a 2 second delay before it attempts to run.
I'm missing something because it still won't compile.
Btw, you should convert your project to platformio, which features a real build system and a real IDE. If your project was platformio then I could just open it up and everything would just download and install. No selection of board, no selection of packages, no finding out which port I need. Everything just works. The entire Arduino package ecosystem is also available.
It works with *.ino files and should just be 100% compatible with your source code, though you might have to move all your files except the root *.ino file to the src/ directory.
Anyway, here's the error code. To continue working on this I need to know either what the ArduinoIDE steps are or have you do a quick conversion to PlatformIO.
Compile error log
In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:9:21: error: 'D1' was not declared in this scope; did you mean 'A1'?
9 |#define LED_PIN D1| ^~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:252:55: note: in expansion of macro 'LED_PIN'
252 | Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);//254
| ^~~~~~~
In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:254,
from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:136:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
136 |"rainbow1",
| ^~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:137:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
137 |"fancy1",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:138:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
138 |"smooth1",
| ^~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:139:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
139 |"smooth2",
| ^~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:140:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
140 |"sunrise1",
| ^~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:141:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
141 |"sunrise2",
| ^~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:142:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
142 |"other1",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:143:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
143 |"other2",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:144:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
144 |"other3",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:145:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
145 |"other4",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:146:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
146 |"other5",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:147:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
147 |"firelike1",
| ^~~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:148:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
148 |"firelike2",
| ^~~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:149:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
149 |"ocean1",
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Palettes.h:150:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
150 |"ocean2",
| ^~~~~~~~
In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:330:1: error: 'LSM6DS3' does not name a type; did you mean 'IMU_LSM6DS3'?
330 | LSM6DS3 myIMU(I2C_MODE, 0x6A); //I2C device address 0x6A
| ^~~~~~~
| IMU_LSM6DS3
In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:363:1: error: 'arduinoFFT' does not name a type; did you mean 'ArduinoFFT'?
363 | arduinoFFT FFT = arduinoFFT();
| ^~~~~~~~~~
| ArduinoFFT
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:216:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
216 | {plasma, "plasma", true},
| ^~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:217:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
217 | {waveRings, "waveRings",true},
| ^~~~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:218:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
218 | {rainbow, "rainbow", true},
| ^~~~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:219:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
219 | {cylon, "cylon", true},
| ^~~~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:220:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
220 | {bpm, "bpm", true},
| ^~~~~
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:221:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
221 | {juggle, "juggle", true}
| ^~~~~~~~
In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:
C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\BLE_COM.ino: In function'voidbleMsgHandler()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\BLE_COM.ino:181:92: note: in expansion of macro 'FULLPATH_STATIC' 181 | else if(strncmp(comBufIn, "STATIC,", 7) == 0 ){ strcpy(comBufIn, &comBufIn[7]); setBmp(FULLPATH_STATIC,comBufIn); cfg.ledMode = LED_STATIC;} | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\BLE_COM.ino:182:92: note: in expansion of macro 'FULLPATH_TRAILS' 182 | else if(strncmp(comBufIn, "TRAIL,", 6) == 0 ){ strcpy(comBufIn, &comBufIn[6]); setBmp(FULLPATH_TRAILS,comBufIn); cfg.ledMode = LED_TRAIL; } | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Batt.ino: In function 'void setup_Batt()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Batt.ino:4:11: error: 'VBAT_ENABLE' was not declared in this scope; did you mean 'SD_BLE_ENABLE'? 4 | pinMode(VBAT_ENABLE,OUTPUT); | ^~~~~~~~~~~ | SD_BLE_ENABLEIn file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Config.ino: In function 'void writeCfg()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Config.ino:115:14: note: in expansion of macro 'MAIN_PATH' 115 | toCharBuff(MAIN_PATH,CONFIGNAME,true); | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:80:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | #define CONFIGNAME "Config.csv" | ^~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Config.ino:115:24: note: in expansion of macro 'CONFIGNAME' 115 | toCharBuff(MAIN_PATH,CONFIGNAME,true); | ^~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\FFT.ino: In function 'void FFT_main()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\FFT.ino:34:13: error: 'FFT' was not declared in this scope 34 | FFT.Windowing(vReal, SAMPLES, FFT_WIN_TYP_HAMMING, FFT_FORWARD); // ~ 6ms | ^~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Filter_IMU.ino: In function 'void start_FILTER_IMU()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Filter_IMU.ino:3:9: error: 'myIMU' was not declared in this scope; did you mean 'IMU'? 3 | if (myIMU.begin() != 0) { imuMode = OFF;} | ^~~~~ | IMUC:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Filter_IMU.ino: In function 'void main_FILTER_IMU()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Filter_IMU.ino:15:19: error: 'myIMU' was not declared in this scope; did you mean 'IMU'? 15 | imuTemp = myIMU.readTempC(); | ^~~~~ | IMUC:\Users\niteris\dev\Nightstick\Nightstick-Arduino\LEDs_2.ino: In function 'pos_f getRandomPoint()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\LEDs_2.ino:94:42: warning: narrowing conversion of 'random8(0, ((uint8_t)vWidth))' from 'uint8_t' {aka 'unsigned char'} to 'float' [-Wnarrowing] 94 | pos_f getRandomPoint(){ return {random8( 0, vWidth), random8( 0, vHeight)};} | ~~~~~~~^~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\LEDs_2.ino:94:63: warning: narrowing conversion of 'random8(0, ((uint8_t)vHeight))' from 'uint8_t' {aka 'unsigned char'} to 'float' [-Wnarrowing] 94 | pos_f getRandomPoint(){ return {random8( 0, vWidth), random8( 0, vHeight)};} | ~~~~~~~^~~~~~~~~~~~~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino: In function 'void setup_SD()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:10:21: error: 'D2' was not declared in this scope; did you mean 'A2'? 10 | #define SDCS_PIN D2 | ^~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:137:31: note: in expansion of macro 'SDCS_PIN' 137 | #define SD_CONFIG SdSpiConfig(SDCS_PIN, DEDICATED_SPI, SPI_CLOCK) | ^~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:10:17: note: in expansion of macro 'SD_CONFIG' 10 | if (!sd.begin(SD_CONFIG)) { | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino: In function 'void printDirectory(File32, int)':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:25:71: error: use of deleted function 'File32::File32(const File32&)' 25 | if (entry.isDir()) { msgln("/"); printDirectory(entry, numTabs+1);} | ^In file included from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatVolume.h:27, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:28, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/SdFat.h:32, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:132, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:1088:7: note: 'File32::File32(const File32&)' is implicitly deleted because the default definition would be ill-formed: 1088 | class File32 : public StreamFile<FatFile, uint32_t> { | ^~~~~~c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:1088:7: error: use of deleted function 'StreamFile<FatFile, long unsigned int>::StreamFile(const StreamFile<FatFile, long unsigned int>&)'In file included from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:883, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:27, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:28, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/SdFat.h:31, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:132, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:c:\users\niteris\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:61:7: note: 'StreamFile<FatFile, long unsigned int>::StreamFile(const StreamFile<FatFile, long unsigned int>&)' is implicitly deleted because the default definition would be ill-formed: 61 | class StreamFile : public stream_t, public BaseFile { | ^~~~~~~~~~c:\users\niteris\documents\arduino\libraries\sdfat\src\common\arduinofiles.h:61:7: error: 'constexpr FatFile::FatFile(const FatFile&)' is private within this contextIn file included from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatVolume.h:27, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatLib.h:28, from c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/SdFat.h:32, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:132, from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:c:\Users\niteris\Documents\Arduino\libraries\SdFat\src/FatLib/FatFile.h:157:3: note: declared private here 157 | FatFile(const FatFile& from) = default; | ^~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:16:28: note: initializing argument 1 of 'void printDirectory(File32, int)' 16 | void printDirectory(File32 path, int numTabs) { | ~~~~~~~^~~~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino: In function 'void ledsChangeBmp(int8_t)':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:52:22: note: in expansion of macro 'FULLPATH_TRAILS' 52 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder, cfg.trailsBmp , loadDirection); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:58:22: note: in expansion of macro 'FULLPATH_STATIC' 58 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder, cfg.staticBmp , loadDirection); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino: In function 'void ledsChangeFld(int8_t)':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:68:26: note: in expansion of macro 'FULLPATH_TRAILS' 68 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder, "" , loadDirection); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:68:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 68 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder, "" , loadDirection); | ^~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:74:26: note: in expansion of macro 'FULLPATH_STATIC' 74 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder, "" , loadDirection); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:74:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 74 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder, "" , loadDirection); | ^~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino: In function 'void chkBmpsAndFolders()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:106:28: note: in expansion of macro 'FULLPATH_TRAILS' 106 | if(!validPath(toPathBuff(FULLPATH_TRAILS, cfg.trailsFolder, true), cfg.trailsFolder)){ | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:107:22: note: in expansion of macro 'FULLPATH_TRAILS' 107 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder , "" , 0); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:107:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 107 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder , "" , 0); | ^~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:81:26: note: in expansion of macro 'MAIN_PATH' 81 | #define FULLPATH_TRAILS (MAIN_PATH SUBFLD_BMP SUBFLD_TRAIL) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:114:22: note: in expansion of macro 'FULLPATH_TRAILS' 114 | nextElement2Buff(FULLPATH_TRAILS, cfg.trailsFolder , cfg.trailsBmp , 0); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:120:28: note: in expansion of macro 'FULLPATH_STATIC' 120 | if(!validPath(toPathBuff(FULLPATH_STATIC, cfg.staticFolder, true), cfg.staticFolder)){ | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:121:22: note: in expansion of macro 'FULLPATH_STATIC' 121 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder , "" , 0); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:121:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 121 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder , "" , 0); | ^~In file included from C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick-Arduino.ino:180:C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:76:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | #define MAIN_PATH "/Nightstick" // Main Folder on SD where BMPs Folder is in | ^C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\Nightstick.h:82:26: note: in expansion of macro 'MAIN_PATH' 82 | #define FULLPATH_STATIC (MAIN_PATH SUBFLD_BMP SUBFLD_STATIC) | ^~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\SD.ino:128:22: note: in expansion of macro 'FULLPATH_STATIC' 128 | nextElement2Buff(FULLPATH_STATIC, cfg.staticFolder , cfg.staticBmp , 0); | ^~~~~~~~~~~~~~~C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\System.ino: In function 'void setupInernalLed()':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\System.ino:7:11: error: 'LED_GREEN' was not declared in this scope; did you mean 'HUE_GREEN'? 7 | pinMode(LED_GREEN, OUTPUT); | ^~~~~~~~~ | HUE_GREENC:\Users\niteris\dev\Nightstick\Nightstick-Arduino\System.ino: In function 'void setBoardLed(char, bool)':C:\Users\niteris\dev\Nightstick\Nightstick-Arduino\System.ino:26:28: error: 'LED_GREEN' was not declared in this scope; did you mean 'HUE_GREEN'? 26 | else if(ch=='G'){chPin = LED_GREEN;} | ^~~~~~~~~ | HUE_GREENexit status 1Compilation error: 'D1' was not declared in this scope; did you mean 'A1'?
Thanks for putting this all in a repo and allowing me to reproduce the issue exactly.
Yes, this is an issue with FastLED and none of the pins work. We have successfully reproduced this build issue on our side and have generated the following build badge to monitor the incompatibility:
This file tests a bunch of defines in the pre-processor to figure out which board is being compiled and then to define pins for each board. I'm continuing to dig in but it looks like your board is simply not defined and hence no pins are binding to your compile type.
I see that you are using the nRF52840. I see that we do indeed have support for this compile type under the NRF52840_FEATHER definition.
I went ahead and put this in your platformio.ini and it compiled fine:
build_flags=-DARDUINO_NRF52840_FEATHER
This will probably serve as a good workaround for now. I'm trying to figure out what define is being used for your board type and seeing if I can bind to it for pin definitions.
Okay, the proper fix is now submitted and your board should compile now with no further changes on your part IF you point your FastLED version to github master branch. This is easy to do with PlatformIO, I'm not sure how Arduino IDE would do this though.
The public fix for this board will go out with the next release on monday.
@zackees Can you support the mbed framework version as well? It's the same repository, just a different board name. Here is a platformio.ini for the mbed enabled stack:
I've gotten about as far as I could go. However, it looks like both arduino.h and this nrf board is trying to pull in their own version of mbed and therefore there are #define redefines and other warnings. Ultimatly is doesn't compile and it looks like I need to use a forked version of the arduino framework. However, all the ones that I tried result is an error message saying this board isn't supported by the framework.
I'm not sure where to go from here. You can always just clone our repo and run ./compile xiaoblesense which will set everything up and give you the exact error messages that's I'm seeing.
We have our own compiler front end for platformio. Our board definition code can be found here:
TARGET_NRF5x/nrf5x_lf_clk_helper.h:43:6: warning: #warning No configuration for LF clock source. Xtal source will be used as a default configuration. [-Wcpp]
#warning No configuration for LF clock source. Xtal source will be used as a default configuration.
^~~~~~~
In file included from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/config/sdk_config.h:11967,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/nrfx/nrfx_config.h:45,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/nrfx.h:44,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/hal/nrf_spim.h:44,
from src\platforms/arm/nrf52/led_sysdefs_arm_nrf52.h:46,
from src\led_sysdefs.h:14,
from src\FastLED.h:59,
from src\FastLED.cpp:2:
C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/nrf5x_lf_clk_helper.h:43:6: warning: #warning No configuration for LF clock source. Xtal source will be used as a default configuration. [-Wcpp]
#warning No configuration for LF clock source. Xtal source will be used as a default configuration.
^~~~~~~
In file included from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/config/sdk_config.h:11967,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/nrfx/nrfx_config.h:45,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/nrfx.h:44,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/hal/nrf_spim.h:44,
from src\platforms/arm/nrf52/led_sysdefs_arm_nrf52.h:46,
from src\led_sysdefs.h:14,
from src\FastLED.h:59,
from src\five_bit_hd_gamma.cpp:5:
C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/nrf5x_lf_clk_helper.h:43:6: warning: #warning No configuration for LF clock source. Xtal source will be used as a default configuration. [-Wcpp]
#warning No configuration for LF clock source. Xtal source will be used as a default configuration.
^~~~~~~
Compiling .pio\build\xiaoblesense\lib1cd\src\fx\video\stream_buffered.cpp.o
Compiling .pio\build\xiaoblesense\lib1cd\src\hsv2rgb.cpp.o
In file included from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/config/sdk_config.h:11967,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/nrfx/nrfx_config.h:45,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/nrfx.h:44,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/hal/nrf_spim.h:44,
from src\platforms/arm/nrf52/led_sysdefs_arm_nrf52.h:46,
from src\led_sysdefs.h:14,
from src\FastLED.h:59,
from src\colorutils.cpp:11:
C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/nrf5x_lf_clk_helper.h:43:6: warning: #warning No configuration for LF clock source. Xtal source will be used as a default configuration. [-Wcpp]
#warning No configuration for LF clock source. Xtal source will be used as a default configuration.
^~~~~~~
Compiling .pio\build\xiaoblesense\lib1cd\src\lib8tion.cpp.o
In file included from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\variants\SEEED_XIAO_NRF52840_SENSE/pinmode_arduino.h:16,
from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/Arduino.h:26,
from src\led_sysdefs.h:78,
from src\FastLED.h:59,
from src\crgb.cpp:2:
C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\variants\SEEED_XIAO_NRF52840_SENSE/mbed_config.h:254: warning: "MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC" redefined
#define MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC NRF_LF_SRC_XTAL
// set by target:MCU_NRF52840
In file included from C:\Users\niteris\.platformio\packages\framework-arduino-mbed-seeed\cores\arduino/mbed/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/config/sdk_config.h:11967,
from C:\Users\niteris\.platformio\packages\framewo
Compilation finished in 00m:24s.
Activity
[-]Seed nRF52 mbed-enabled board - compiling error[/-][+]Seeed nRF52 mbed-enabled board - compiling error[/+]kakapo5140cc0 commentedon Jul 26, 2024
did you get this to work? im having the same issues and really need fastled
Loaded-Dice commentedon Jul 26, 2024
Hey there,
Unfortunately, I had to use a very sketchy solution to use FastLed features with the nRF52
If you just want to control addressable RGB LEDs in an easy way and could go without the advantages of the FastLED
library (like fast math-/ timing- / noise - / color - functions), then you can simply go with the
Adafruit_NeoPixel library -> https://github.com/adafruit/Adafruit_NeoPixel
But if you want to use those mentioned functions in particular, then you may have to do it with this
workaround:
Use this core: Seeed Studio nRF52 Boards v1.1.1 (not mbed)
include the FastLED library
And create an CRGB leds[NUM_LEDS]; array for your LEDs
and don't initialize the hardware ( = avoid FastLED.addLeds... ) otherwise the build will fail.
Also include Adafruit_NeoPixel.h
and here you initialize
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
Or whatever LED controller you might have.
Then you can use the FastLED color functions on your CRGB array and copy the data from the virtual CRGB array to the Neopixel strip.
void fastToNeo(){for(int i = 0; i < NUM_LEDS; i++){ strip.setPixelColor(i, leds[i].r, leds[i].g, leds[i].b); }}
you can find my working nRF52 + FastLED & Neopixel project here
https://github.com/Loaded-Dice/Nightstick/tree/main/Nightstick-Arduino
https://github.com/Loaded-Dice/Nightstick/blob/b333b01ab9f8833c7c347652aabb02401f6bbb04/Nightstick-Arduino/Nightstick.h#L238C5-L238C6
good luck & regards
kakapo5140cc0 commentedon Jul 26, 2024
awesome, thanks! the idea is understandable, but the execution is rather complicated. Would it be possible for you to write a blink sketch for me? it would be highly appreciated!
kakapo5140cc0 commentedon Jul 26, 2024
i am reading through the whole project.. its awesome! definitely going to take some snippets of your code later... just trying to digest it as good as possible
kakapo5140cc0 commentedon Jul 26, 2024
i got it working!! thanks so much
Loaded-Dice commentedon Jul 26, 2024
Great job! :)
But writing down a simple example to a workaround, that I found years ago, might be a great Idea anyway.
Just in case anyone else stumbles across this problem:
Here is a simple workaround to get FastLed working with the XIAO nRF52:
https://github.com/Loaded-Dice/XIAO_nrf52_FastLED_Workaround_example
zackees commentedon Sep 6, 2024
Whats your sketch?
I'm about to push a fix that will make the compiler errors not be 20 pages long for this chipset. The problem is that we only define valid pins. Invalid pins go through a default FastPin template which is missing function/value definitions that the compiler is expecting will exist and you get a weird error that is very very long.
For the NRF52 series I'm introducing an invalid pin specification that binds to a specialization of the FastPin<> type that will static_assert in a clean way.
I suspect that you used one of these invalid pins and that this was causing your issue and it's not obvious what the fix is to the average user.
Loaded-Dice commentedon Sep 6, 2024
Hi,
the sketch that caused the issue in the first place is this one:
https://github.com/Loaded-Dice/Nightstick/tree/main/Nightstick-Arduino
Which boils down to a Xiao nRF52840 Sense Board, where I used pin D1 ( P0.03_AIN1_LOW_A1_D1 )
Which didn't work, apparently.
I'm looking forward to your updates.
Best regards
zackees commentedon Sep 6, 2024
It's an invalid pin because it's used for UART RX. It probably works but kills external Serial output? Or maybe it just doesn't work at all. Hard to tell. Anyway, master now has this fix and it will compile and attempt to run. No idea if it will generate a core panic, but if it does that, you'll get a nice message on the output console that the pin isn't supported and a 2 second delay before it attempts to run.
Good luck!
fix FastLED#1445 FastLED#1055
zackees commentedon Sep 13, 2024
Comments here on this bug report.
Target IDE: Arduino Latest
board package json: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
Additional Libraries:
zackees commentedon Sep 13, 2024
I'm missing something because it still won't compile.
Btw, you should convert your project to platformio, which features a real build system and a real IDE. If your project was platformio then I could just open it up and everything would just download and install. No selection of board, no selection of packages, no finding out which port I need. Everything just works. The entire Arduino package ecosystem is also available.
It works with *.ino files and should just be 100% compatible with your source code, though you might have to move all your files except the root *.ino file to the src/ directory.
Anyway, here's the error code. To continue working on this I need to know either what the ArduinoIDE steps are or have you do a quick conversion to PlatformIO.
Compile error log
Loaded-Dice commentedon Sep 13, 2024
Good morning zackees,
I will compile a simple pio project for you to have a look at, right when I' back from Work.
Thanks for your efforts
1 remaining item
zackees commentedon Sep 13, 2024
Thanks for putting this all in a repo and allowing me to reproduce the issue exactly.
Yes, this is an issue with FastLED and none of the pins work. We have successfully reproduced this build issue on our side and have generated the following build badge to monitor the incompatibility:
zackees commentedon Sep 13, 2024
Okay for some reason there are some defines missing for this platform.
The pin definitions are in this file:
src/platforms/arm/nrf52/clockless_arm_nrf52.h
zackees commentedon Sep 13, 2024
Okay I think I found the cause:
src\platforms\arm\nrf52\fastpin_arm_nrf52_variants.h
This file tests a bunch of defines in the pre-processor to figure out which board is being compiled and then to define pins for each board. I'm continuing to dig in but it looks like your board is simply not defined and hence no pins are binding to your compile type.
zackees commentedon Sep 13, 2024
Yes, confirmed.
I inserted
#erroron every board definition in the above file and it wasn't hit. No wonder you are hitting this issue.zackees commentedon Sep 13, 2024
I see that you are using the nRF52840. I see that we do indeed have support for this compile type under the
NRF52840_FEATHERdefinition.I went ahead and put this in your platformio.ini and it compiled fine:
This will probably serve as a good workaround for now. I'm trying to figure out what define is being used for your board type and seeing if I can bind to it for pin definitions.
zackees commentedon Sep 13, 2024
Okay, the proper fix is now submitted and your board should compile now with no further changes on your part IF you point your FastLED version to github master branch. This is easy to do with PlatformIO, I'm not sure how Arduino IDE would do this though.
The public fix for this board will go out with the next release on monday.
Loaded-Dice commentedon Sep 13, 2024
Absolutely amazing ! I really appreciate your work and additionally this may serve as motivation to port my project to PIO :)
Thx for making my day.
zackees commentedon Sep 13, 2024
Thanks @Loaded-Dice. Your project looks interesting. Good luck with it!
bu5hm4nn commentedon Nov 5, 2024
@zackees Can you support the mbed framework version as well? It's the same repository, just a different board name. Here is a
platformio.inifor the mbed enabled stack:zackees commentedon Nov 6, 2024
Okay the support process has started.
How close is this to the adafruit xiaoblesense_nrf52840? I see that we have that board building.
If you'd like to poke around, then clone the repo and execute at the project root:
./compile xiaoblesenseIf you are in windows then you'll have to install git-bash
zackees commentedon Nov 6, 2024
I've gotten about as far as I could go. However, it looks like both arduino.h and this nrf board is trying to pull in their own version of mbed and therefore there are #define redefines and other warnings. Ultimatly is doesn't compile and it looks like I need to use a forked version of the arduino framework. However, all the ones that I tried result is an error message saying this board isn't supported by the framework.
I'm not sure where to go from here. You can always just clone our repo and run
./compile xiaoblesensewhich will set everything up and give you the exact error messages that's I'm seeing.We have our own compiler front end for platformio. Our board definition code can be found here:
https://github.com/FastLED/FastLED/blob/master/ci/ci/boards.py
Compiler log
bu5hm4nn commentedon Nov 8, 2024
Thanks. Yeah their library fork is half hearted at best. I will see if I can fix their library up a bit.
zackees commentedon Nov 13, 2024
Do let me know any updates