32 for (
const pin_t &pin : ledPins)
33 ExtIO::pinMode(pin,
OUTPUT);
57 ExtIO::digitalWrite(ledPins[index],
HIGH);
63 ExtIO::digitalWrite(ledPins[index],
LOW);
78 for (
pin_t pin : ledPins)
79 ExtIO::digitalWrite(pin,
LOW);
#define BEGIN_AH_NAMESPACE
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
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.
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
Type for storing pin numbers of Extended Input/Output elements.