AceSegmentWriter
0.5
Write decimal numbers, hex numbers, temperature, clock digits, characters, and strings to seven segment LED modules
|
The ClockWriter writes "hh:mm" and "yyyy" to the LedModule. More...
#include <ClockWriter.h>
Public Member Functions | |
ClockWriter (NumberWriter< T_LED_MODULE > &numberWriter, uint8_t colonDigit=1) | |
Constructor. More... | |
T_LED_MODULE & | ledModule () |
Get the underlying LedModule. | |
PatternWriter< T_LED_MODULE > & | patternWriter () |
Get the underlying PatternWriter. | |
NumberWriter< T_LED_MODULE > & | numberWriter () |
Get the underlying NumberWriter. | |
void | home () |
Reset cursor to home. | |
void | writeHourMinute24 (uint8_t hh, uint8_t mm) |
Write the hour and minute in 24-hour format (i.e. More... | |
void | writeHourMinute12 (uint8_t hh, uint8_t mm) |
Write the hour and minute in 12-hour format (i.e. More... | |
void | writeColon (bool state=true) |
Write the colon symbol between 'hh' and 'mm'. More... | |
void | clear () |
Clear the entire display. | |
void | clearToEnd () |
Clear the display from pos to the end. | |
The ClockWriter writes "hh:mm" and "yyyy" to the LedModule.
A few other characters are supported.
Definition at line 39 of file ClockWriter.h.
|
inlineexplicit |
Constructor.
numberWriter | instance of NumberWriter<T_LED_MODULE> |
colonDigit | The digit which has the colon (":") character, mapped to bit 7 (i.e. 'H' segment). In many 4-digit LED clock display modules, this is digit 1 (counting from the left, 0-based, so the second digit from the left). |
Definition at line 50 of file ClockWriter.h.
|
inline |
Write the colon symbol between 'hh' and 'mm'.
state | Set to false to turn off the colon. |
Definition at line 99 of file ClockWriter.h.
|
inline |
Write the hour and minute in 12-hour format (i.e.
leading space), and the colon in one-shot, assuming the LED module is a 4-digit clock module. This is a convenience function.
Definition at line 88 of file ClockWriter.h.
|
inline |
Write the hour and minute in 24-hour format (i.e.
leading 0), and the colon in one-shot, assuming the LED module is a 4-digit clock module. This is a convenience function.
Definition at line 77 of file ClockWriter.h.