Display effect for showing the current date.
More...
#include <jbwopreffects.h>
|
std::string | _rawTimeFormat |
| Raw time format.
|
|
std::string | _timeFormatEven |
| Time format for even.
|
|
std::string | _timeFormatOdd |
| Time format for odd.
|
|
std::string | _rawDateFormat |
| Raw date format.
|
|
std::string | _dateFormat |
| Date format.
|
|
JBWoprDevice * | _woprDevice |
| JBWoprDevice instance.
|
|
std::string | _name |
| Name of effect.
|
|
bool | _isRunning = false |
| True if effect is running.
|
|
bool | _done = true |
| True if effect is done, waiting for duration to end.
|
|
uint32_t | _duration = -1 |
| Duration of effect in milliseconds.
|
|
uint32_t | _startTime = 0 |
| Start time of effect in milliseconds.
|
|
uint32_t | _nextTick = 0 |
| Next tick time in milliseconds.
|
|
|
void | _displayText (const std::string &text, JBTextAlignment alignment=JBTextAlignment::LEFT) |
| Display text on raw display.
|
|
Display effect for showing the current date.
◆ JBWoprDateDisplayEffect()
JBWoprDateDisplayEffect::JBWoprDateDisplayEffect |
( |
JBWoprDevice * |
woprDevice, |
|
|
std::string |
dateFormat = "" , |
|
|
uint32_t |
duration = -1 , |
|
|
const std::string & |
name = JBWOPR_EFFECT_NAME_DATE |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
woprDevice | JBWoprDevice instance |
dateFormat | (optional) Date format, default is fetched from config |
duration | (optional) Duration of effect in milliseconds, default is -1 (infinite) |
name | (optional) Name of effect |
◆ loop()
void JBWoprDateDisplayEffect::loop |
( |
| ) |
|
|
overridevirtual |
◆ setDateFormat()
void JBWoprDateDisplayEffect::setDateFormat |
( |
const std::string & |
dateFormat | ) |
|
Set date format.
- Parameters
-
◆ start()
void JBWoprDateDisplayEffect::start |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: