Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
pulse an output for a period of time and than switches off More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
Pulse (T &obj) | |
pulse an output for a period of time and than switches of More... | |
void | setOnInterval (uint32_t _onInterval) |
set interval times More... | |
void | off () override |
switch output off More... | |
void | toggle () |
switch between on or off state | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
pulse an output for a period of time and than switches off
Turns on a LED for a defined period of time without using the delay() function (monoflop). This means that other code can run at the same time without being interrupted by the LED code. The output acts like a monoflop.
pulse an output for a period of time and than switches of
obj | the pin to connect |
|
inline |
set interval times
Set the on interval of the LED during runtime.
_onInterval | the new on interval |
|
inlineoverride |
switch output off
Switch the output to off state.
|
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 |