AceSegment  0.8.2
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::LevelWriter< T_LED_MODULE > Class Template Reference

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.
 

Detailed Description

template<typename T_LED_MODULE>
class ace_segment::LevelWriter< T_LED_MODULE >

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].

Template Parameters
T_LED_MODULEthe 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.

Member Function Documentation

◆ getMaxLevel()

template<typename T_LED_MODULE >
uint8_t ace_segment::LevelWriter< T_LED_MODULE >::getMaxLevel ( ) const
inline

Return the maximum level supported by this LED display.

The range is [0, maxLevel].

Definition at line 65 of file LevelWriter.h.


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