Code / Program for Smoothly Fading of many RGB colours using an Arduino PWM and a non blocking program! I decided I’d bang this together quickly for anyone interested. It uses a non blocking style program by counting out timers to run functions on time and only when needed. I hope it is easy to follow.
Debouncing buttons can be a major issue for novice programmers, for something that seems so simple (Just put in a button!) it can be hours of pulling your hair out. Typically a button is partially debounced using hardware but what if you just want the ability to get rid of those false presses or stop […]
UPDATE! See my updated version of this code here I was just messing around with some cheap RGB Leds I got off ebay and decided to replicate the smooth colour changing I seen on some Ikea lamp a while back… There are more complicated ways of doing this with less program “bloat”, for lack of […]