Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
dim up / down a LED dimms smoothly More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
Smooth (T &obj) | |
dim up / down a LED dimms smoothly More... | |
void | offForced () |
force switch off More... | |
uint16_t | getCurrentBrightness () |
get the current brightness More... | |
void | getCurrentBrightness (uint16_t brightness) |
set the current brightness More... | |
void | setMaxBrightness (uint16_t newValue) |
set the maximum brightness More... | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
dim up / down a LED dimms smoothly
dim up / down a LED dimms smoothly
obj | the pin to connect |
|
inline |
force switch off
switches off imidiatly without smooth effect
|
inline |
get the current brightness
The current brightness/level of this output
|
inline |
set the current brightness
The current brightness/level of this output
|
inline |
set the maximum brightness
The output will dimm up to this maximum level.
newValue | the maximum brigthness (upper end of range) [on UNO 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 |