AceSegment  0.11.0
A library for rendering seven segment LED displays using the TM1637, TM1638, MAX7219, HT16K33, or 74HC595 controller chips
Public Member Functions | Friends | List of all members
ace_segment::LedMatrixDirect< T_GPIOI > Class Template Reference

An LedMatrixBase that whose group pins and element pins are wired directly to the MCU. More...

#include <LedMatrixDirect.h>

Inheritance diagram for ace_segment::LedMatrixDirect< T_GPIOI >:
Inheritance graph
[legend]
Collaboration diagram for ace_segment::LedMatrixDirect< T_GPIOI >:
Collaboration graph
[legend]

Public Member Functions

 LedMatrixDirect (uint8_t elementOnPattern, uint8_t groupOnPattern, uint8_t numElements, const uint8_t *elementPins, 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
 
- Public Member Functions inherited from ace_segment::LedMatrixBase
 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 ::LedMatrixDirectTest_drawElements
 

Additional Inherited Members

- Protected Attributes inherited from ace_segment::LedMatrixBase
const uint8_t mElementXorMask
 
const uint8_t mGroupXorMask
 

Detailed Description

template<typename T_GPIOI = GpioInterface>
class ace_segment::LedMatrixDirect< T_GPIOI >

An LedMatrixBase that whose group pins and element pins are wired directly to the MCU.

Template Parameters
T_GPIOI(optional) class that provides access to the GPIO pins, default is GpioInterface (note: 'GPI' is already taken on ESP8266)

Definition at line 44 of file LedMatrixDirect.h.

Constructor & Destructor Documentation

◆ LedMatrixDirect()

template<typename T_GPIOI = GpioInterface>
ace_segment::LedMatrixDirect< T_GPIOI >::LedMatrixDirect ( uint8_t  elementOnPattern,
uint8_t  groupOnPattern,
uint8_t  numElements,
const uint8_t *  elementPins,
uint8_t  numGroups,
const uint8_t *  groupPins 
)
inline

Constructor.

Parameters
elementOnPatternbit pattern that turns on the elements (segments)
groupOnpatternbit pattern that turns on the groups (digits)
numElementsnumber of LED segments, almost always 8
elementPinspointer to array of 'numElements' pin numbers
numGroupsnumber of LED groups (digits)
groupPinspointer to array of 'numGroups' pin numbers

Definition at line 55 of file LedMatrixDirect.h.


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