AceSegment
0.2.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
Public Member Functions | |
ModulatingDigitDriver (LedMatrix *ledMatrix, DimmingDigit *dimmingDigits, uint8_t numDigits, uint8_t numSubFields, bool ownsLedMatrix=false) | |
Constructor. More... | |
virtual void | configure () override |
virtual uint16_t | getFieldsPerFrame () override |
Return number of fields per frame. More... | |
virtual bool | isBrightnessSupported () override |
Returns true if the driver supports brightness. More... | |
virtual void | displayCurrentField () override |
Display the current field of the frame. More... | |
![]() | |
DigitDriver (LedMatrix *ledMatrix, DimmingDigit *dimmingDigits, uint8_t numDigits, bool ownsLedMatrix=false) | |
Constructor. More... | |
![]() | |
virtual | ~Driver () |
Virtual destructor needed to clean up LedMatrix that was created on the heap by DriverBuilder. More... | |
void | setPattern (uint8_t digit, SegmentPatternType pattern, uint8_t brightness=DimmingDigit::kOn) |
Set the pattern for a given digit. More... | |
void | setBrightness (uint8_t digit, uint8_t brightness) |
Set the brightness of the given digit. More... | |
Protected Attributes | |
uint8_t const | mNumSubFields |
uint8_t | mCurrentSubField |
uint8_t | mCurrentSubFieldMax |
![]() | |
uint8_t | mCurrentDigit |
uint8_t | mPrevDigit |
bool | mIsCurrentDigitOn |
SegmentPatternType | mSegmentPattern |
![]() | |
LedMatrix *const | mLedMatrix |
DimmingDigit *const | mDimmingDigits |
const uint8_t | mNumDigits |
const bool | mOwnsLedMatrix |
Additional Inherited Members | |
![]() | |
typedef uint8_t | SegmentPatternType |
Integer type used to store the segment bit patterns of a single digit. More... | |
typedef uint8_t | DigitPatternType |
Integer type used to store the digit bit patterns of a single segment. More... | |
![]() | |
DigitDriver (const DigitDriver &)=delete | |
DigitDriver & | operator= (const DigitDriver &)=delete |
![]() | |
Driver (const Driver &)=delete | |
Driver & | operator= (const Driver &)=delete |
Driver (LedMatrix *ledMatrix, DimmingDigit *dimmingDigits, uint8_t numDigits, bool ownsLedMatrix=false) | |
Constructor. More... | |
![]() | |
static const uint8_t | kNumSegments = 8 |
Number of segments on a single digit. More... | |
Definition at line 35 of file ModulatingDigitDriver.h.
|
inlineexplicit |
Constructor.
Definition at line 38 of file ModulatingDigitDriver.h.
|
overridevirtual |
Display the current field of the frame.
Automatically advances to the next field for the next call. A frame is one complete rendering of all the digits. A field is a slice of that frame. If the digits are multiplexed, then a field is a rendering of a single digit with all its segments. If the segments are multiplexed, then a field is a rendering of a single segment across multiple digits.
Reimplemented from ace_segment::DigitDriver.
Definition at line 32 of file ModulatingDigitDriver.cpp.
|
inlineoverridevirtual |
Return number of fields per frame.
Reimplemented from ace_segment::DigitDriver.
Definition at line 51 of file ModulatingDigitDriver.h.
|
inlineoverridevirtual |
Returns true if the driver supports brightness.
If not, any brightness greater than 0 will be considered ON, and 0 will be OFF.
Reimplemented from ace_segment::DigitDriver.
Definition at line 55 of file ModulatingDigitDriver.h.