AceSegment
0.3.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
Class that writes out a string, collapsing '. More...
#include <StringWriter.h>
Public Member Functions | |
StringWriter (CharWriter *charWriter) | |
Constructor. More... | |
void | writeStringAt (uint8_t digit, const char *s, bool padRight=false) |
Write the string beginning at the specified position, filling up to numDigits. More... | |
Class that writes out a string, collapsing '.
' characters into the decimal point of the previous character. In other words, "0.2.3.4" takes up 4 digits, not 7 digits.
Definition at line 38 of file StringWriter.h.
|
inlineexplicit |
Constructor.
Definition at line 41 of file StringWriter.h.
void ace_segment::StringWriter::writeStringAt | ( | uint8_t | digit, |
const char * | s, | ||
bool | padRight = false |
||
) |
Write the string beginning at the specified position, filling up to numDigits.
digit | starting digit position, 0 on the left |
s | string to be rendered |
padRight | fill the right side with empty spaces if we run out of characters in 's' |
Definition at line 29 of file StringWriter.cpp.