AceSegment
0.4.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
25 #ifndef ACE_SEGMENT_LED_DISPLAY_H
26 #define ACE_SEGMENT_LED_DISPLAY_H
30 namespace ace_segment {
44 LedDisplay(uint8_t numDigits) : mNumDigits(numDigits) {}
96 virtual void clear() = 0;
102 uint8_t
const mNumDigits;
virtual void clear()=0
Clear all digits to blank pattern.
General interface for writing LED segment patterns to the LED display module.
virtual void setGlobalBrightness(uint8_t brightness)=0
Set global brightness of all digits, with the brightness value expressed as a fraction of 256.
virtual void writeDecimalPointAt(uint8_t pos, bool state=true)=0
Write the decimal point for the pos.
virtual void writePatternsAt_P(uint8_t pos, const uint8_t patterns[], uint8_t len)=0
Write the array of patterns of length len, which are stored in flash memory through PROGMEM,...
virtual void writePatternsAt(uint8_t pos, const uint8_t patterns[], uint8_t len)=0
Write the array of patterns of length len, starting at pos.
virtual void setBrightnessAt(uint8_t pos, uint8_t brightness)=0
Write the brightness for a given pos, leaving pattern unchanged.
uint8_t getNumDigits() const
Return the number of digits supported by this display instance.
virtual void writePatternAt(uint8_t pos, uint8_t pattern)=0
Write the pattern for a given pos.