Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
heart beat - dims up and down permanentely More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
Heartbeat (T &obj) | |
heart beat LED More... | |
uint16_t | getCurrentBrightness () |
get the current brightness More... | |
void | setCurrentBrightness (uint8_t brightness) |
set the current brightness More... | |
void | setMaxBrightness (uint8_t maxBrightness) |
set the maximum brightness More... | |
void | setMinBrightness (uint8_t minBrightness) |
set the minium brightness More... | |
void | on () override |
switch on | |
void | off () override |
switch off | |
void | toggle () |
switch between on or off state | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
heart beat - dims up and down permanentely
The output will dimm up and down. You can define threashold for min and max dim level.
|
inline |
heart beat LED
obj | a obj representing a LED |
|
inline |
get the current brightness
The current brightness/level of this output
|
inline |
set the current brightness
Set a new current brightness/level of this output
brightness | the new current brigthness |
|
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 |
set the minium brightness
The output will dimm down to this minium level.
minBrightness | the minium brigthness (lower 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 |