RSeries astromech firmware
|
#include <core/LedControlMAX7221.h>
LED MAX7221 device chain.
Encapsulates an MAX7221 device chain of "numDevices" on "dataPin", "clkPin", and "csPin"
Inherits LedControl.
Public Member Functions | |
LedControlMAX7221 (byte dataPin, byte clkPin, byte csPin) | |
Constructor. More... | |
virtual byte | addDevice (byte count=1) override |
Add device to chain and return index. More... | |
virtual int | getDeviceCount () override |
virtual bool | isPowered (byte device) override |
virtual void | setPower (byte device, bool onState, byte count=1) override |
Enable/disable power Params : device The address of the display to control status If true the device goes into power-down mode. More... | |
virtual void | setScanLimit (byte device, byte limit, byte count=1) override |
Set the number of digits (or rows) to be displayed. More... | |
virtual void | setIntensity (byte device, byte intensity, byte count=1) override |
Set the brightness of the display. More... | |
virtual void | clearDisplay (byte device, byte count=1) override |
Switch all Leds on the display off. More... | |
virtual void | setLed (byte device, int row, int column, boolean state) override |
Set the status of a single Led. More... | |
virtual void | setRow (byte device, int row, byte value) override |
Set all 8 Led's in a row to a new state Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More... | |
virtual void | setRowNoCache (byte device, int row, byte value) override |
Set all 8 Led's in a row to a new state (no cache) Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More... | |
virtual void | setColumn (byte device, int column, byte value) override |
Set all 8 Led's in a column to a new state Params: device address of the display column column which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More... | |
virtual byte | getRow (byte device, byte row) override |
|
inline |
Constructor.
|
inlineoverridevirtual |
Add device to chain and return index.
You must ensure that enough devices were reserved for it to function.
|
inlineoverridevirtual |
Switch all Leds on the display off.
Params: device address of the display to control
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Set all 8 Led's in a column to a new state Params: device address of the display column column which is to be set (0..7) value each bit set to 1 will light up the corresponding Led.
|
inlineoverridevirtual |
Set the brightness of the display.
Params: device the address of the display to control intensity the brightness of the display. (0..15)
|
inlineoverridevirtual |
Set the status of a single Led.
Params : device address of the display row the row of the Led (0..7) col the column of the Led (0..7) state If true the led is switched on, if false it is switched off
|
inlineoverridevirtual |
Enable/disable power Params : device The address of the display to control status If true the device goes into power-down mode.
Set to false for normal operation.
|
inlineoverridevirtual |
Set all 8 Led's in a row to a new state Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led.
|
inlineoverridevirtual |
Set all 8 Led's in a row to a new state (no cache) Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led.
|
inlineoverridevirtual |
Set the number of digits (or rows) to be displayed.
See datasheet for sideeffects of the scanlimit on the brightness of the display. Params : device address of the display to control limit number of digits to be displayed (1..8)