Display effect for showing the current date, with rainbow colors.
More...
#include <jbwopreffects.h>
|
|
uint64_t | _nextLedTick = 0 |
| | Next LED tick.
|
|
uint16_t | _pixelHue = 0 |
| | Pixel hue.
|
|
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, with rainbow colors.
◆ JBWoprDateDisplayRainbowEffect()
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 JBWoprDateDisplayRainbowEffect::loop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: