This is an old version of the documentation. View the latest version
here.
Control Surface
1.0.0
MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
47 for (uint8_t pin = 0; pin < startOn; pin++)
49 for (uint8_t pin = startOn; pin < startOff; pin++)
51 for (uint8_t pin = startOff; pin < N; pin++)
56 void set(uint8_t index)
const {
62 void clear(uint8_t index)
const {
void pinMode(pin_t pin, uint8_t mode)
An ExtIO version of the Arduino function.
void set(uint8_t index) const
Turn on the given LED.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
const PinList< N > ledPins
#define BEGIN_CS_NAMESPACE
void digitalWrite(pin_t pin, uint8_t val)
An ExtIO version of the Arduino function.
void begin() const
Initialize (set LED pins as outputs).
void displayRange(uint8_t startOn, uint8_t startOff) const
Turn on a range of the LEDs.
void displayDot(uint8_t led) const
Turn on a single LED, and turn off all others.
A class for collections of LEDs that can display ranges.
void clear() const
Turn off all LEDs.
LEDs(const PinList< N > &ledPins)
Create a LEDs object.
void clear(uint8_t index) const
Turn off the given LED.