AceSegment  0.3.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
Public Member Functions | List of all members
ace_segment::LedMatrixSpi Class Reference

Similar to LedMatrixSerial but uses SPI to talk to the 74HC595 chip instead of the shiftOut() method. More...

#include <LedMatrixSpi.h>

Inheritance diagram for ace_segment::LedMatrixSpi:
Inheritance graph
[legend]
Collaboration diagram for ace_segment::LedMatrixSpi:
Collaboration graph
[legend]

Public Member Functions

 LedMatrixSpi (Hardware *hardware, uint8_t numGroups, uint8_t numElements)
 
virtual void configure () override
 Configure the pins for the given LED wiring. More...
 
virtual void finish () override
 Turn off the pins by doing the opposite of configure(). More...
 
virtual void drawElements (uint8_t pattern) override
 
- Public Member Functions inherited from ace_segment::LedMatrixSerial
 LedMatrixSerial (Hardware *hardware, uint8_t numGroups, uint8_t numElements)
 
void setGroupPins (const uint8_t *groupPins)
 
void setElementPins (uint8_t latchPin, uint8_t dataPin, uint8_t clockPin)
 
virtual void enableGroup (uint8_t group) override
 
virtual void disableGroup (uint8_t group) override
 
- Public Member Functions inherited from ace_segment::LedMatrix
 LedMatrix (Hardware *hardware, uint8_t numGroups, uint8_t numElements)
 
void setCathodeOnGroup ()
 LED negative terminals are on the group line. More...
 
void setAnodeOnGroup ()
 LED positive terminals are on the group line. More...
 
void invertGroupLevels ()
 If a transistor drives the group, invert the logic levels. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ace_segment::LedMatrixSerial
void writeGroupPin (uint8_t group, uint8_t output)
 Write to group pin identified by 'group'. More...
 
- Protected Attributes inherited from ace_segment::LedMatrixSerial
const uint8_t * mGroupPins
 
uint8_t mLatchPin
 
uint8_t mDataPin
 
uint8_t mClockPin
 
- Protected Attributes inherited from ace_segment::LedMatrix
Hardware *const mHardware
 
const uint8_t mNumGroups
 
const uint8_t mNumElements
 
uint8_t mGroupOn
 
uint8_t mGroupOff
 
uint8_t mElementOn
 
uint8_t mElementOff
 

Detailed Description

Similar to LedMatrixSerial but uses SPI to talk to the 74HC595 chip instead of the shiftOut() method.

Definition at line 38 of file LedMatrixSpi.h.

Member Function Documentation

◆ configure()

void ace_segment::LedMatrixSpi::configure ( )
overridevirtual

Configure the pins for the given LED wiring.

Reimplemented from ace_segment::LedMatrixSerial.

Definition at line 31 of file LedMatrixSpi.cpp.

◆ finish()

void ace_segment::LedMatrixSpi::finish ( )
overridevirtual

Turn off the pins by doing the opposite of configure().

Reimplemented from ace_segment::LedMatrixSerial.

Definition at line 36 of file LedMatrixSpi.cpp.


The documentation for this class was generated from the following files: