Noiasca LED Control
An improved library to control MAX7219/MAX7221 Seven Segment LED displays
Public Member Functions | List of all members
LedControlSpi Class Reference

class for MAX7219/MAX7221 (Hardware SPI) More...

#include <NoiascaLedControlSpi.h>

Inheritance diagram for LedControlSpi:
LedControl_base

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...
 
- Public Member Functions inherited from LedControl_base
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...
 

Detailed Description

class for MAX7219/MAX7221 (Hardware SPI)

this class should be used whenever you can use Hardware SPI.

Constructor & Destructor Documentation

◆ LedControlSpi()

LedControlSpi::LedControlSpi ( uint8_t  csPin,
uint8_t  numDevices = 1 
)

Create a new MAX7219/MAX7221 object for Hardware SPI.

Parameters
csPinpin for selecting the device
numDevicesmaximum number of devices that can be controlled

Member Function Documentation

◆ begin()

void LedControlSpi::begin ( )
virtual

initialise hardware

call this method in your setup(). initialise hardware - sets pinMode for csPin

Reimplemented from LedControl_base.