Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
enable several effects on a PCA9685 output More...
#include <Noiasca_PCA9685.h>
Public Member Functions | |
EffectPCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel) | |
![]() | |
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 PCA9685 output
wrapper to do several effects on a PCA9685 output. Inherits "style" class and composites PCA9685.
|
inline |
pwm | a reference to an IC object |
pixel | the pin on the IC |