26 #include "LedMatrix.h" 32 if (mOwnsLedMatrix && mLedMatrix) {
37 void Driver::configure() {
39 mLedMatrix->configure();
45 if (digit >= mNumDigits)
return;
47 dimmingDigit.pattern = pattern;
48 dimmingDigit.brightness = brightness;
52 if (digit >= mNumDigits)
return;
53 mDimmingDigits[digit].brightness = brightness;
uint8_t SegmentPatternType
Integer type used to store the segment bit patterns of a single digit.
void setPattern(uint8_t digit, SegmentPatternType pattern, uint8_t brightness=DimmingDigit::kOn)
Set the pattern for a given digit.
virtual ~Driver()
Virtual destructor needed to clean up LedMatrix that was created on the heap by DriverBuilder.
void setBrightness(uint8_t digit, uint8_t brightness)
Set the brightness of the given digit.