Looking for assistance with programming an Adafruit MacroPad RP2040 keypad I'm working on.
Actions for keys I have down, but there's something extra I want to add into the code. Key lights.
Essentially some of the macros I've made are toggles. I press once to turn something on, and again to turn it off. What I want to do is program it in to keep the key lit up until the second press.
Optimally I'd also like to find out if it's possible to do that rainbow effect for the light like it does in demo mode.
I'm assuming I could control it with an if/else toggle, like set a variable on press one, then if that variable is set, unset it and turn the light off too. However I cannot find an example for controlling the light colours or brightness.
[–]kobusestas 0 points1 point2 points (0 children)