AceSegment
0.4.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
25 #include "StringWriter.h"
27 namespace ace_segment {
31 bool charWasWritten =
false;
37 if (digit >= numDigits)
break;
45 charWasWritten =
false;
50 charWasWritten =
true;
57 for (; digit < numDigits; digit++) {
void writeStringAt(uint8_t pos, const char *s, bool padRight=false)
Write the string beginning at the specified position, filling up to numDigits.
General interface for writing LED segment patterns to the LED display module.
virtual void writeDecimalPointAt(uint8_t pos, bool state=true)=0
Write the decimal point for the pos.
void writeCharAt(uint8_t pos, char c)
Write the character at the specified position.
LedDisplay & display() const
Get the underlying LedDisplay.
uint8_t getNumDigits() const
Return the number of digits supported by this display instance.