#include <AH/Hardware/LEDs/LEDs.hpp>
A class for collections of LEDs that can display ranges.
N | The number of LEDs in the collection. |
Public Member Functions | |
LEDs (const PinList< N > &ledPins) | |
Create a LEDs object. | |
void | begin () const |
Initialize (set LED pins as outputs). | |
void | displayRange (uint16_t startOn, uint16_t startOff) const |
Turn on a range of the LEDs. | |
void | set (uint16_t index) const |
Turn on the given LED. | |
void | clear (uint16_t index) const |
Turn off the given LED. | |
void | displayDot (uint16_t led) const |
Turn on a single LED, and turn off all others. | |
void | clear () const |
Turn off all LEDs. | |
Private Attributes | |
const PinList< N > | ledPins |