Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
enable several effects on a discrete pin More...
#include <Noiasca_discrete.h>
Public Member Functions | |
EffectPin (byte pin, uint8_t active=HIGH) | |
![]() | |
void | off () override |
switch output off More... | |
void | on (bool force=false) |
switch on More... | |
void | offForced () |
** More... | |
brightness_t | getCurrentBrightness () |
get the current brightness More... | |
void | setCurrentBrightness (brightness_t brightness) |
set the current brightness More... | |
void | setMaxBrightness (brightness_t maxBrightness) |
set the maximum brightness More... | |
void | setOnInterval (uint16_t newInterval) |
set on interval More... | |
void | setOffInterval (uint16_t newInterval) |
set off interval More... | |
void | toggle () override |
switch between on or off state More... | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
void | setInterval (uint16_t _interval0, uint16_t _interval1) |
set on/off times More... | |
void | setInterval (uint16_t _interval0, uint16_t _interval1, uint16_t _interval2, uint16_t _interval3) |
set on/off times More... | |
void | setInterval (uint16_t _interval0, uint16_t _interval1, uint16_t _interval2, uint16_t _interval3, uint16_t _interval4, uint16_t _interval5) |
set on/off times More... | |
void | setInterval (uint16_t _interval0, uint16_t _interval1, uint16_t _interval2, uint16_t _interval3, uint16_t _interval4, uint16_t _interval5, uint16_t _interval6, uint16_t _interval7) |
set on/off times More... | |
void | setModeOnOff () |
activate OnOff mode More... | |
void | setModeBlink () |
activate Blink mode More... | |
void | setModeFlicker () |
activate Flicker mode | |
void | setModeFluorescent () |
activate Fluorescent mode More... | |
void | setModeHeartbeat () |
activate Heartbeat mode More... | |
void | setModePulse () |
activate Pulse mode More... | |
void | setModeRhythm () |
activate Rhythm mode More... | |
void | setModeSmooth () |
activate Smooth mode More... | |
void | blink (uint32_t currentMillis) |
"run" function for blink effect More... | |
void | flicker (uint32_t currentMillis=millis()) |
"run" function for flicker effect More... | |
void | fluorescent (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
void | heartbeat (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
void | pulse (uint32_t currentMillis=millis()) |
check if update for pulse is necessary More... | |
void | rhythm (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
void | smooth (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
enable several effects on a discrete pin
wrapper for severak effects on a discrete Arduino pin. Inherits "style" class and composites DiscretePin
|
inline |
pin | a discrete pin |
active | if the pin should be LOW active, set parameter to LOW. default is HIGH. |