26 #include "DigitDriver.h" 27 #include "LedMatrix.h" 33 if (mPreparedToSleep)
return;
43 if (dimmablePattern.brightness == 0) {
47 if (segmentPattern != mSegmentPattern) {
48 mLedMatrix->drawElements(segmentPattern);
49 mSegmentPattern = segmentPattern;
uint8_t SegmentPatternType
Integer type used to store the segment bit patterns of a single digit.
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 void prepareToSleep()
Prepare to go to sleep by clearing the frame, and setting a flag so that it doesn't turn itself back ...
uint8_t mPrevDigit
Within the displayCurrentField() method, the mPrevDigit is the digit that was displayed on the previo...
static void incrementMod(T &i, T m)
Increment i modulo m, avoiding expensive % operator on some 8-bit processors like AVR...
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.