25 #ifndef ACE_SEGMENT_SEGMENT_DRIVER_H 26 #define ACE_SEGMENT_SEGMENT_DRIVER_H 33 class DimmablePattern;
44 uint8_t numDigits,
bool ownsLedMatrix =
false):
45 Driver(ledMatrix, dimmablePatterns, numDigits, ownsLedMatrix)
76 uint8_t mCurrentSegment;
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 ...
A Driver that assumes that the resistors are on the digits so the multiplexing occurs by scanning thr...
virtual void configure()
Configure the driver.
virtual uint16_t getFieldsPerFrame() override
Return number of fields per frame.
virtual bool isBrightnessSupported() override
Returns true if the driver supports brightness.
Class that represents the abstraction of a particular LED display wiring.
SegmentDriver(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...
virtual void displayCurrentField() override
Display the current field of the frame.
virtual void configure() override
Configure the driver.
static const uint8_t kNumSegments
Number of segments on a single digit.
uint8_t DigitPatternType
Integer type used to store the digit bit patterns of a single segment.