Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
Simulation of a fluorescent lamp or fluorescent tube. More...
#include <Noiasca_led.h>
Inherits LedBase< T >.
Public Member Functions | |
Fluorescent (T &obj) | |
simulate a fluroescent lamp or flurescent tube More... | |
uint16_t | getCurrentBrightness () |
get the current brightness More... | |
void | on () override |
switch on | |
void | off () override |
switch off | |
void | toggle () override |
switch between on or off state | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
Simulation of a fluorescent lamp or fluorescent tube.
Turns on and off light emitting diodes (LED) connected to a digital pin, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code.
|
inline |
simulate a fluroescent lamp or flurescent tube
obj | the pin to connect |
|
inline |
get the current brightness
The current brightness/level of this output
|
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 |