Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
blink a LED (an output) More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
void | setOnInterval (uint16_t newInterval) |
set on interval More... | |
void | setOffInterval (uint16_t newInterval) |
set off interval More... | |
void | off () override |
switch output off More... | |
void | on () override |
switch on More... | |
void | on (bool force) |
switch on More... | |
void | toggle () override |
switch between on or off state More... | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
blink a LED (an output)
a class to blink a object uses a unified hw interface
|
inline |
set on interval
Set a new interval / time for how long the LED should be on.
newInterval | new interval in milliseconds |
|
inline |
set off interval
Set a new interval / time for how long the LED should be off.
newInterval | new interval in milliseconds |
|
inlineoverride |
switch output off
Switch the effect to off state.
|
inlineoverride |
switch on
If effect is off, switch the output on.
|
inline |
switch on
If effect is off, switch the output on.
force | set to true if new state must be forced to the first ON state. set to false if only the OFF state should be switched ON (default). |
|
inlineoverride |
switch between on or off state
If the LED is on - switch it off. If the LED is off - switch it on.
|
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 |