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

bounce 5 LEDs on PCA9685 between left and right More...

#include <Noiasca_PCA9685.h>

Inheritance diagram for Bounce5PCA9685:
Bounce5< PCA9685 >

Public Member Functions

 Bounce5PCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel)
 
- Public Member Functions inherited from Bounce5< PCA9685 >
 Bounce5 (PCA9685 &obj)
 Bounce 5 LEDs between left and right. More...
 
void begin ()
 start hardware More...
 
void setOnStateChange (Callback funcPtr)
 set the callback function onStateChange More...
 
void on ()
 switch output on More...
 
void off ()
 switch output off More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

bounce 5 LEDs on PCA9685 between left and right

wrapper to bounce a series of 5 PCA9685 outputs. Inherits "style" class and composites PCA9685

Note
the 5 pca9685 must be in sequence (could be changed one day using PCA9685Group<5>)

Constructor & Destructor Documentation

◆ Bounce5PCA9685()

Bounce5PCA9685::Bounce5PCA9685 ( Adafruit_PWMServoDriver &  pwm,
uint16_t  pixel 
)
inline
Parameters
pwma reference to your PCA9685 output
pixelthe first of 5 outputs on the PCA9685 to be used