AceSegment
0.8.2
A framework for rendering seven segment LED displays using the TM1637, MAX7219, HT16K33, or 74HC595 controller chips
|
Emulate a level led module using a left vertical bar and a right vertical bar on each digit. More...
#include <LevelWriter.h>
Public Member Functions | |
LevelWriter (T_LED_MODULE &ledModule) | |
Constructor. | |
T_LED_MODULE & | ledModule () |
Get the underlying LedModule. | |
PatternWriter< T_LED_MODULE > & | patternWriter () |
Get the underlying PatternWriter. | |
uint8_t | getMaxLevel () const |
Return the maximum level supported by this LED display. More... | |
void | writeLevel (uint8_t level) |
Write out the level bar, 2 levels per digit. | |
Emulate a level led module using a left vertical bar and a right vertical bar on each digit.
Since each digit can represent 2 levels, the range of levels for the entire LED display is [0, 2*numDigits]
.
T_LED_MODULE | the class of the underlying LED Module, often LedModule but other classes with the same generic public methods can be substituted |
Definition at line 42 of file LevelWriter.h.
|
inline |
Return the maximum level supported by this LED display.
The range is [0, maxLevel].
Definition at line 65 of file LevelWriter.h.