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