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
Is there a way that I could save a CRGB Array (CRGB leds[LED_NUM]) to a JSON file and then import that saved CRGB Array back into my program on the next boot?
Does such a function exist?
Running on an Arduino Based ESP32.
There's no built in FastLED function to do this. You should be able to write/read a CRGB array to a file though (on an SD card for example).
If it was a fairly small number of pixels maybe you can save the array to EEPROM.
For general help getting individual projects like this working, please ask in the FastLED Reddit group. There are lots more people there that can hopefully provide some suggestions. Please provide a bit more specific info about your hardware setup and what you are wanting to do if you ask there. If you want to share code there please put it on pastebin.com or gist.github.com and Share a link.
Activity
marmilicious commentedon Apr 30, 2020
There's no built in FastLED function to do this. You should be able to write/read a CRGB array to a file though (on an SD card for example).
If it was a fairly small number of pixels maybe you can save the array to EEPROM.
For general help getting individual projects like this working, please ask in the FastLED Reddit group. There are lots more people there that can hopefully provide some suggestions. Please provide a bit more specific info about your hardware setup and what you are wanting to do if you ask there. If you want to share code there please put it on pastebin.com or gist.github.com and Share a link.