|
Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
simulate a flickering light like a fire More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
| Flicker (T &obj) | |
| simulate a flickering light like a fire More... | |
| void | off () override |
| switch off | |
| void | setMaxBrightness (uint8_t _maxBrightness) |
| set the maximum brightness More... | |
| void | toggle () |
| switch between on or off state | |
| void | update (uint32_t currentMillis=millis()) |
| check if update is necessary More... | |
simulate a flickering light like a fire
state 0 off, 1 flicker_on
simulate a flickering light like a fire
| obj | the pin to connect |
|
inline |
set the maximum brightness
The output will dimm up to this maximum level.
| _maxBrightness | the maximum brigthness (upper end of range) [0..255] |
|
inline |
check if update is necessary
This is the "run" function. Call this function in loop() to make the effect visible.
| currentMillis | you can handover a millis timestamp |