|
Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
alternate blinking of to LEDs in a specific rhythm More...
#include <Noiasca_led.h>
Public Member Functions | |
| void | begin () |
| start hardware More... | |
| void | setOnInterval (uint16_t onA, uint16_t onB) |
| set on/off times More... | |
| void | setOnInterval (uint16_t onA) |
| set on/off times More... | |
| void | setOnStateChange (Callback funcPtr) |
| set the callback function onStateChange More... | |
| void | on () |
| switch output on More... | |
| void | off () |
| switch output off More... | |
| void | toggle () |
| switch between on or off state | |
| void | update (uint32_t currentMillis=millis()) |
| check if update is necessary More... | |
alternate blinking of to LEDs in a specific rhythm
two LEDs blinking alternating
doesn't inherit from LedBase.
|
inline |
start hardware
Will do the necessary steps to initialize the hardware pins. Call this function in your setup().
|
inline |
set on/off times
Set the on intervals of both LEDs during runtime.
| onA | the on time of pinA in ms (vice versa the off time of pinB). |
| onB | the on time of pinB in ms (vice versa the off time of pinB). |
|
inline |
set on/off times
Set the interval during runtime.
| onA | the on time of pinA and pinB in ms. |
|
inline |
set the callback function onStateChange
a callback function receives state changes from the effect
| funcPtr | the callback function |
|
inline |
switch output on
Switch the output to on state.
|
inline |
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 |