25 #ifndef ACE_SEGMENT_LED_MATRIX_H 26 #define ACE_SEGMENT_LED_MATRIX_H 30 #if LOW != 0 || HIGH != 1 31 #error LOW is not 0 or HIGH is not 1 53 mNumGroups(numGroups),
54 mNumElements(numElements)
77 mGroupOn = 1 - mGroupOn;
78 mGroupOff = 1 - mGroupOff;
87 virtual void enableGroup(uint8_t group) = 0;
89 virtual void disableGroup(uint8_t group) = 0;
91 virtual void drawElements(uint8_t pattern) = 0;
95 const uint8_t mNumGroups;
96 const uint8_t mNumElements;
virtual void finish()
Turn off the pins by doing the opposite of configure().
virtual void configure()
Configure the pins for the given LED wiring.
void setAnodeOnGroup()
LED positive terminals are on the group line.
void invertGroupLevels()
If a transistor drives the group, invert the logic levels.
Class that represents the abstraction of a particular LED display wiring.
void setCathodeOnGroup()
LED negative terminals are on the group line.