Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
enable several effects on a PCF8547 output More...
#include <Noiasca_PCF8574.h>
Public Member Functions | |
EffectPCF8547 (PCF8574expander &hardware, uint8_t pin) | |
![]() | |
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 PCF8547 output
wrapper to do several effects on a PCF8547 output. Inherits "style" class and composites PCF8547.
|
inline |
hardware | a reference to your PCF8574 object |
pin | the pin on the expander to be used |