Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
Public Member Functions | List of all members
FlickerPCA9685 Class Reference

simulate a flickering light like a fire on a PCA9685 More...

#include <Noiasca_PCA9685.h>

Inheritance diagram for FlickerPCA9685:
Flicker< PCA9685 >

Public Member Functions

 FlickerPCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel)
 
- Public Member Functions inherited from Flicker< PCA9685 >
 Flicker (PCA9685 &obj)
 simulate a flickering light like a fire More...
 
void off () override
 switch off
 
void setMaxBrightness (uint8_t _maxBrightness)
 set the maximum brightness More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

simulate a flickering light like a fire on a PCA9685

wrapper to flicker an output on a PCA9685 output. Inherits "style" class and composites PCA9685

Constructor & Destructor Documentation

◆ FlickerPCA9685()

FlickerPCA9685::FlickerPCA9685 ( Adafruit_PWMServoDriver &  pwm,
uint16_t  pixel 
)
inline
Parameters
pwma reference to your PCA9685 output
pixelthe output on the PCA9685 to be used