AceSegment
0.2.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
|
The HexWriter supports mapping of Hex characters to segment patterns supported by Renderer. More...
#include <HexWriter.h>
Public Member Functions | |
HexWriter (Renderer *renderer) | |
Constructor. More... | |
uint8_t | getNumDigits () |
Get the number of digits. More... | |
void | writeHexAt (uint8_t digit, uint8_t c) |
Write the hex at the specified position. More... | |
void | writeHexAt (uint8_t digit, uint8_t c, StyledDigit::StyleType style) |
Write the hex at the specified position. More... | |
void | writeStyleAt (uint8_t digit, StyledDigit::StyleType style) |
Write the style for a given digit, leaving hex 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 |
static const uint8_t | kSpace = 0x10 |
static const uint8_t | kPeriod = 0x11 |
static const uint8_t | kMinus = 0x12 |
The HexWriter supports mapping of Hex characters to segment patterns supported by Renderer.
A few other characters are supported which should be self-explanatory: kSpace, kPeriod, kMinus.
Definition at line 39 of file HexWriter.h.
|
inlineexplicit |
Constructor.
Definition at line 47 of file HexWriter.h.
|
inline |
Get the number of digits.
Definition at line 52 of file HexWriter.h.
|
inline |
Write the decimal point at digit.
Definition at line 67 of file HexWriter.h.
void ace_segment::HexWriter::writeHexAt | ( | uint8_t | digit, |
uint8_t | c | ||
) |
Write the hex at the specified position.
Definition at line 80 of file HexWriter.cpp.
void ace_segment::HexWriter::writeHexAt | ( | uint8_t | digit, |
uint8_t | c, | ||
StyledDigit::StyleType | style | ||
) |
Write the hex at the specified position.
Definition at line 71 of file HexWriter.cpp.
|
inline |
Write the style for a given digit, leaving hex unchanged.
Definition at line 61 of file HexWriter.h.
|
static |
Definition at line 41 of file HexWriter.h.