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

Class that writes out a string, collapsing '. More...

#include <StringWriter.h>

Public Member Functions

 StringWriter (CharWriter &charWriter)
 Constructor.
 
LedDisplaydisplay () const
 Get the underlying LedDisplay.
 
void writeStringAt (uint8_t pos, const char *s, bool padRight=false)
 Write the string beginning at the specified position, filling up to numDigits. More...
 

Detailed Description

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.

Member Function Documentation

◆ writeStringAt()

void ace_segment::StringWriter::writeStringAt ( uint8_t  pos,
const char *  s,
bool  padRight = false 
)

Write the string beginning at the specified position, filling up to numDigits.

Parameters
posstarting digit position, 0 on the left
sstring to be rendered
padRightfill the right side with empty spaces if we run out of characters in 's'

Definition at line 29 of file StringWriter.cpp.


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