46 for (uint16_t pin = 0; pin < startOn; pin++)
48 for (uint16_t pin = startOn; pin < startOff; pin++)
50 for (uint16_t pin = startOff; pin < N; pin++)
55 void set(uint16_t index)
const {
61 void clear(uint16_t index)
const {
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
#define BEGIN_AH_NAMESPACE
A class for collections of LEDs that can display ranges.
const PinList< N > ledPins
void clear(uint16_t index) const
Turn off the given LED.
LEDs(const PinList< N > &ledPins)
Create a LEDs object.
void set(uint16_t index) const
Turn on the given LED.
void begin() const
Initialize (set LED pins as outputs).
void clear() const
Turn off all LEDs.
void displayDot(uint16_t led) const
Turn on a single LED, and turn off all others.
void displayRange(uint16_t startOn, uint16_t startOff) const
Turn on a range of the LEDs.
void pinMode(pin_t pin, PinMode_t mode)
An ExtIO version of the Arduino function.
void digitalWrite(pin_t pin, PinStatus_t val)
An ExtIO version of the Arduino function.