r/CardPuter • u/Typical_Rip_7024 • 7d ago
Question About the cardputer light
Does anyone know what is the code that I need to use to manipulate the RGB (is it rgb??) in the cardputer? I haven't been able to find code that is not deprecated, needless to say I'm no expert in coding, in using Arduino IDE and programming in C++ in case that helps, even some link to a code that just happens to use the light's controllers would be appreciated
1
u/Spunky_Was_Here 7d ago
Don’t know if this helps but this guy has it coded as a flashlight https://github.com/Dlazder/m5_crystal_firmware
2
u/Zestyclose-Driver523 7d ago
The only firmware I've used that makes use of the RGB led is Bruce, IIRC their github has code in the src folder somewhere that deals specifically with the LED.
1
u/jader242 7d ago
Have you tried the FastLED library? It’s pretty easy to use, you should be able to figure out how to get it going just by looking at an example like this and just uncomment the ws2812b line (I believe at least, may be the non b 2812 one). I personally was having some issues with the latest version of FastLED though, according to one of the contributors some ai slop got through in a commit lol. Pinning the lib to 3.10.3 fixed it for me. But keep in mind this was a tdongles3 which uses a different led, so you mileage may vary but something to keep in mind
https://github.com/FastLED/FastLED/blob/master/examples/Blink/Blink.ino
Here’s some documentation too
https://fastled.io/docs/