26 #include "LedMatrix.h" 32 if (mOwnsLedMatrix && mLedMatrix) {
51 if (digit >= mNumDigits)
return;
53 dimmablePattern.pattern = pattern;
54 dimmablePattern.brightness = brightness;
58 if (digit >= mNumDigits)
return;
59 mDimmablePatterns[digit].brightness = brightness;
uint8_t SegmentPatternType
Integer type used to store the segment bit patterns of a single digit.
virtual void finish()
Turn off the pins by doing the opposite of configure().
virtual void configure()
Configure the pins for the given LED wiring.
virtual void configure()
Configure the driver.
virtual void finish()
Turn off the LEDs by doing the opposite of configure().
void setPattern(uint8_t digit, SegmentPatternType pattern, uint8_t brightness=DimmablePattern::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.