AceSegment
0.12.0
A library for rendering seven segment LED displays using the TM1637, TM1638, MAX7219, HT16K33, or 74HC595 controller chips
|
An implementation of LedMatrixBase with an 74HC595 Shift Register chip on the segment pins, with the digit pins directly connected to the microcontroller. More...
#include <LedMatrixSingleHc595.h>
Public Member Functions | |
LedMatrixSingleHc595 (const T_SPII &spiInterface, uint8_t elementOnPattern, uint8_t groupOnPattern, uint8_t numGroups, const uint8_t *groupPins) | |
Constructor. More... | |
void | begin () const |
void | end () const |
void | draw (uint8_t group, uint8_t elementPattern) const |
void | enableGroup (uint8_t group) const |
void | disableGroup (uint8_t group) const |
void | clear () const |
![]() | |
LedMatrixBase (uint8_t elementOnPattern, uint8_t groupOnPattern) | |
void | begin () const |
Configure the pins for the given LED wiring. | |
void | end () const |
Turn off the pins by doing the opposite of begin(). | |
void | draw (uint8_t, uint8_t) const |
Write element patterns for the given group. | |
void | disableGroup (uint8_t) const |
Disable the elements of given group. | |
void | enableGroup (uint8_t) const |
Enable the elements of given group. | |
void | clear () const |
Clear everything. | |
Friends | |
class | ::LedMatrixSingleHc595Test_drawElements |
Additional Inherited Members | |
![]() | |
const uint8_t | mElementXorMask |
const uint8_t | mGroupXorMask |
An implementation of LedMatrixBase with an 74HC595 Shift Register chip on the segment pins, with the digit pins directly connected to the microcontroller.
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)
T_SPII | class that implements the SPI interface, usually one of the classes in the AceSPI library: SimpleSpiInterface, SimpleSpiFastInterface, HardSpiInterface, HardSpiFastInterface. |
T_GPIOI | (optional) interface to GPIO functions, default GpioInterface (note: 'GPI' is already taken on ESP8266) |
Definition at line 53 of file LedMatrixSingleHc595.h.
|
inline |
Constructor.
spiInterface | object that knows how to send SPI packets |
elementOnPattern | bit pattern that turns on the elements (segments) |
groupOnpattern | bit pattern that turns on the groups (digits) |
numGroups | number of LED groups (digits) |
groupPins | pointer to array of 'numGroups' pin numbers |
Definition at line 63 of file LedMatrixSingleHc595.h.