AceSegment  0.8.0
A framework for rendering seven segment LED displays using the TM1637, MAX7219, HT16K33, or 74HC595 controller chips
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.
 
LedModuleledModule ()
 Get the underlying LedModule.
 
CharWritercharWriter ()
 Get the underlying LedModule.
 
uint8_t writeStringAt (uint8_t pos, const char *cs, uint8_t numChar=255)
 Write c-string cs at specified position pos up to numChar characters. More...
 
uint8_t writeStringAt (uint8_t pos, const __FlashStringHelper *fs, uint8_t numChar=255)
 Write flash string fs at specified position pos up to numChar characters. More...
 
void clear ()
 Clear the entire display.
 
void clearToEnd (uint8_t pos)
 Clear the display from pos to the end.
 

Detailed Description

Class that writes out a string, collapsing '.

' characters into the decimal point of the previous character. In other words, "0.1.2.3" takes up 4 digits, not 7 digits.

Definition at line 42 of file StringWriter.h.

Member Function Documentation

◆ writeStringAt() [1/2]

uint8_t ace_segment::StringWriter::writeStringAt ( uint8_t  pos,
const __FlashStringHelper *  fs,
uint8_t  numChar = 255 
)
inline

Write flash string fs at specified position pos up to numChar characters.

Returns
number of actual LED digits written

Definition at line 75 of file StringWriter.h.

◆ writeStringAt() [2/2]

uint8_t ace_segment::StringWriter::writeStringAt ( uint8_t  pos,
const char *  cs,
uint8_t  numChar = 255 
)
inline

Write c-string cs at specified position pos up to numChar characters.

Returns
number of actual LED digits written

Definition at line 61 of file StringWriter.h.


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