AceSegment  0.7.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::StringScroller Class Reference

Class that scrolls a string left or right. More...

#include <StringScroller.h>

Public Member Functions

 StringScroller (CharWriter &charWriter)
 Constructor.
 
LedModuleledModule () const
 Get the underlying LedModule.
 
CharWritercharWriter ()
 Get the underlying LedModule.
 
uint8_t getNumDigits () const
 Return the number of digits supported by this display instance.
 
void initScrollLeft (const char *s)
 Set scroll string, clear the display, and prepare to scroll left.
 
void initScrollLeft (const __FlashStringHelper *fs)
 Set scroll string, clear the display, and prepare to scroll left.
 
bool scrollLeft ()
 Scroll one position left. More...
 
void initScrollRight (const char *s)
 Set scroll string, clear the display, and prepare to scroll right.
 
void initScrollRight (const __FlashStringHelper *fs)
 Set scroll string, clear the display, and prepare to scroll right.
 
bool scrollRight ()
 Scroll one position left. More...
 

Detailed Description

Class that scrolls a string left or right.

Definition at line 39 of file StringScroller.h.

Member Function Documentation

◆ scrollLeft()

bool ace_segment::StringScroller::scrollLeft ( )
inline

Scroll one position left.

Return true when the scrolling is done and the display is cleared

Definition at line 77 of file StringScroller.h.

◆ scrollRight()

bool ace_segment::StringScroller::scrollRight ( )
inline

Scroll one position left.

Return true when the scrolling is done and the display is cleared

Definition at line 108 of file StringScroller.h.


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