Noiasca LED Control
An improved library to control MAX7219/MAX7221 Seven Segment LED displays
|
class for MAX7219/MAX7221 (Hardware SPI) More...
#include <NoiascaLedControlSpi.h>
Public Member Functions | |
LedControlSpi (uint8_t csPin, uint8_t numDevices=1) | |
Create a new MAX7219/MAX7221 object for Hardware SPI. More... | |
void | begin () |
initialise hardware More... | |
![]() | |
uint8_t | getDeviceCount () |
get the number of devices attached of this object. More... | |
void | shutdown (uint8_t addr, bool status) |
Set the shutdown (power saving) mode for the device. More... | |
void | setScanLimit (uint8_t addr, uint8_t limit) |
Set the number of digits (or rows) to be displayed. More... | |
void | setIntensity (uint8_t addr, uint8_t intensity) |
Set the brightness of the display. More... | |
void | clearDisplay (uint8_t addr) |
Switch all LEDss on the display off. More... | |
void | setLed (uint8_t addr, uint8_t row, uint8_t col, boolean state) |
Set the status of a single LEDs. More... | |
void | setRow (uint8_t addr, uint8_t row, uint8_t value) |
Set all 8 LEDs in a row to a new state. More... | |
void | setColumn (uint8_t addr, uint8_t col, uint8_t value) |
Set all 8 LEDs in a column to a new state. More... | |
void | setDigit (uint8_t addr, uint8_t digit, uint8_t value, boolean dp) |
Display a hexadecimal digit on a 7-Segment Display. More... | |
void | setChar (uint8_t addr, uint8_t digit, char value, boolean dp) |
Display a character on a 7-Segment display. More... | |
void | setEndOfDevice (optionEndOfDevice newOption) |
Change the option of what should happen at the End of the Line (End of one Device/Adress) More... | |
void | setCursor (uint8_t newPosition) |
Set the cursor to a specific position. More... | |
void | setCursor (uint8_t addr, uint8_t devPosition) |
Set the Cursor to a specific position. More... | |
class for MAX7219/MAX7221 (Hardware SPI)
this class should be used whenever you can use Hardware SPI.
LedControlSpi::LedControlSpi | ( | uint8_t | csPin, |
uint8_t | numDevices = 1 |
||
) |
Create a new MAX7219/MAX7221 object for Hardware SPI.
csPin | pin for selecting the device |
numDevices | maximum number of devices that can be controlled |
|
virtual |
initialise hardware
call this method in your setup(). initialise hardware - sets pinMode for csPin
Reimplemented from LedControl_base.