1.MAX7219-Blink
This example demonstrates the use of MAX7219 LED outputs as if they were just normal IO pins, using digitalWrite
.
- Boards:
- AVR, AVR USB, Nano Every, Nano 33 IoT, Nano 33 BLE, Pi Pico, Due, Teensy 3.x, ESP8266, ESP32
Connections
Behavior
This sketch will blink the first and the last LEDs once a second, in an alternating pattern.
Written by PieterP, 2020-03-24
https://github.com/tttapa/Arduino-Helpers
const pin_t ledPin2 = max7219.pin(63);
void setup() {
max7219.begin();
}
void loop() {
delay(500);
delay(500);
}
constexpr PinStatus_t LOW
constexpr PinStatus_t HIGH
constexpr PinMode_t OUTPUT
Dummy header file for Arduino builder.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
pin_t pin(pin_t pin) const
Get the extended IO pin number of a given physical pin of this extended IO element.
A class for LED outputs using the MAX7219 LED display driver.
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.
A namespace with alternatives to the standard Arduino IO functions that can be used with extended IO ...