If you want a simple way to use a chain of MegaBrites, ShiftBrites (RGB LEDs) or anything based on the A6281 PWM LED driver , the TinyBrite library will handle all the details for you. Best of all it doesn’t need SPI, so you can drive the RGB LEDs even with ATTiny-based Arduino-compatible hardware like the Digistump Digispark!
Using TinyBrite to control these RGB LEDs can be as simple as:
chain_of_lights.sendColor(R, G, B); // yay!
The library was developed for small Arduino-compatible boards, but in addition to working with all Arduinos it should be usable on pretty much any Atmel AVR chip and probably relatively easily with other microcontrollers, too.
Be the first to post a review of TinyBrite!