AceSegment  0.2.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
Public Member Functions | Static Public Attributes | List of all members
ace_segment::CharWriter Class Reference

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
 

Detailed Description

The CharWriter supports mapping of ASCII (0 - 127) characters to segment patterns supported by Renderer.

Definition at line 38 of file CharWriter.h.

Constructor & Destructor Documentation

◆ CharWriter()

ace_segment::CharWriter::CharWriter ( Renderer renderer)
inlineexplicit

Constructor.

Definition at line 43 of file CharWriter.h.

Member Function Documentation

◆ getNumDigits()

uint8_t ace_segment::CharWriter::getNumDigits ( )
inline

Get the number of digits.

Definition at line 48 of file CharWriter.h.

◆ writeCharAt() [1/2]

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.

◆ writeCharAt() [2/2]

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.

◆ writeDecimalPointAt()

void ace_segment::CharWriter::writeDecimalPointAt ( uint8_t  digit,
bool  state = true 
)
inline

Write the decimal point at digit.

Definition at line 63 of file CharWriter.h.

◆ writeStyleAt()

void ace_segment::CharWriter::writeStyleAt ( uint8_t  digit,
StyledDigit::StyleType  style 
)
inline

Write the style for a given digit, leaving character unchanged.

Definition at line 57 of file CharWriter.h.


The documentation for this class was generated from the following files: