AceSegment
0.3.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
An LedMatrix with an 74HC595 Serial-To-Parallel converter chip on the segment pins. More...
#include <LedMatrixSerial.h>
Public Member Functions | |
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 | 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 | enableGroup (uint8_t group) override |
virtual void | disableGroup (uint8_t group) override |
virtual void | drawElements (uint8_t pattern) override |
![]() | |
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... | |
Protected Member Functions | |
void | writeGroupPin (uint8_t group, uint8_t output) |
Write to group pin identified by 'group'. More... | |
Protected Attributes | |
const uint8_t * | mGroupPins |
uint8_t | mLatchPin |
uint8_t | mDataPin |
uint8_t | mClockPin |
![]() | |
Hardware *const | mHardware |
const uint8_t | mNumGroups |
const uint8_t | mNumElements |
uint8_t | mGroupOn |
uint8_t | mGroupOff |
uint8_t | mElementOn |
uint8_t | mElementOff |
An LedMatrix with an 74HC595 Serial-To-Parallel converter chip on the segment pins.
The wiring is as follows:
latchPin/D10/SS – ST_CP (Phillips) / RCK (TI) / Pin 12 (rising) dataPin/D11/MOSI – DS (Phillips) / SER (TI) / Pin 14 clockPin/D13/SCK – SH_CP (Phillips) / SRCK (TI) / Pin 11 (rising)
Definition at line 42 of file LedMatrixSerial.h.
|
overridevirtual |
Configure the pins for the given LED wiring.
Reimplemented from ace_segment::LedMatrix.
Reimplemented in ace_segment::LedMatrixSpi.
Definition at line 30 of file LedMatrixSerial.cpp.
|
overridevirtual |
Turn off the pins by doing the opposite of configure().
Reimplemented from ace_segment::LedMatrix.
Reimplemented in ace_segment::LedMatrixSpi.
Definition at line 46 of file LedMatrixSerial.cpp.
|
protected |
Write to group pin identified by 'group'.
Definition at line 72 of file LedMatrixSerial.cpp.