AceSegment
0.4.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
25 #ifndef ACE_SEGMENT_LED_MATRIX_BASE_H
26 #define ACE_SEGMENT_LED_MATRIX_BASE_H
28 namespace ace_segment {
86 uint8_t groupOnPattern,
87 uint8_t elementOnPattern
89 mGroupXorMask(~groupOnPattern),
90 mElementXorMask(~elementOnPattern)
100 void draw(uint8_t , uint8_t )
const {}
112 uint8_t
const mGroupXorMask;
113 uint8_t
const mElementXorMask;
Class that represents the abstraction of a particular LED display wiring, and knows how to turn off a...
static constexpr uint8_t kActiveLowPattern
Bit pattern to indicate that logical 0 activates group or element.
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.
LedMatrixBase(uint8_t groupOnPattern, uint8_t elementOnPattern)
static constexpr uint8_t kActiveHighPattern
Bit pattern to indicate that logical 1 activates group or element.
void disableGroup(uint8_t) const
Disable the elements of given group.
void clear() const
Clear everything.
void begin() const
Configure the pins for the given LED wiring.
void enableGroup(uint8_t) const
Enable the elements of given group.