AceSegment
0.2.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
The CharWriter supports mapping of ASCII (0 - 127) characters to segment patterns supported by Renderer. More...
#include <CharWriter.h>
Public Member Functions | |
CharWriter (Renderer *renderer) | |
Constructor. More... | |
uint8_t | getNumDigits () |
Get the number of digits. More... | |
void | writeCharAt (uint8_t digit, char c) |
Write the character at the specified position. More... | |
void | writeCharAt (uint8_t digit, char c, StyledDigit::StyleType style) |
Write the character at the specified position. More... | |
void | writeStyleAt (uint8_t digit, StyledDigit::StyleType style) |
Write the style for a given digit, leaving character unchanged. More... | |
void | writeDecimalPointAt (uint8_t digit, bool state=true) |
Write the decimal point at digit. More... | |
Static Public Attributes | |
static const uint8_t | kNumCharacters = 128 |
The CharWriter supports mapping of ASCII (0 - 127) characters to segment patterns supported by Renderer.
Definition at line 38 of file CharWriter.h.
|
inlineexplicit |
Constructor.
Definition at line 43 of file CharWriter.h.
|
inline |
Get the number of digits.
Definition at line 48 of file CharWriter.h.
void ace_segment::CharWriter::writeCharAt | ( | uint8_t | digit, |
char | c | ||
) |
Write the character at the specified position.
Definition at line 189 of file CharWriter.cpp.
void ace_segment::CharWriter::writeCharAt | ( | uint8_t | digit, |
char | c, | ||
StyledDigit::StyleType | style | ||
) |
Write the character at the specified position.
Definition at line 180 of file CharWriter.cpp.
|
inline |
Write the decimal point at digit.
Definition at line 63 of file CharWriter.h.
|
inline |
Write the style for a given digit, leaving character unchanged.
Definition at line 57 of file CharWriter.h.