25 #ifndef ACE_SEGMENT_DIGIT_DRIVER_H 26 #define ACE_SEGMENT_DIGIT_DRIVER_H 33 class DimmablePattern;
44 uint8_t numDigits,
bool ownsLedMatrix =
false):
45 Driver(ledMatrix, dimmablePatterns, numDigits, ownsLedMatrix)
uint8_t SegmentPatternType
Integer type used to store the segment bit patterns of a single digit.
virtual bool isBrightnessSupported() override
Returns true if the driver supports brightness.
virtual void configure() override
Configure the driver.
virtual void prepareToSleep() override
Prepare to go to sleep by clearing the frame, and setting a flag so that it doesn't turn itself back ...
virtual uint16_t getFieldsPerFrame() override
Return number of fields per frame.
virtual void configure()
Configure the driver.
Class that represents the abstraction of a particular LED display wiring.
uint8_t mPrevDigit
Within the displayCurrentField() method, the mPrevDigit is the digit that was displayed on the previo...
DigitDriver(LedMatrix *ledMatrix, DimmablePattern *dimmablePatterns, uint8_t numDigits, bool ownsLedMatrix=false)
Constructor.
Base class of drivers which knows how to transfer the bit patterns stored in the array of DimmablePat...
A Driver that assumes that the resistors are on the segments so the multiplexing occurs by scanning t...
uint8_t mCurrentDigit
Within the displayCurrentField() method, mCurrentDigit is the current digit that is being drawn...
virtual void displayCurrentField() override
Display the current field of the frame.