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

Switch on/off a PCA9685 output smoothly. More...

#include <Noiasca_PCA9685.h>

Inheritance diagram for SmoothPCA9685:
Smooth< PCA9685 >

Public Member Functions

 SmoothPCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel)
 
- Public Member Functions inherited from Smooth< PCA9685 >
 Smooth (PCA9685 &obj)
 dim up / down a LED dimms smoothly More...
 
void offForced ()
 force switch off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void getCurrentBrightness (uint16_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint16_t newValue)
 set the maximum brightness More...
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

Switch on/off a PCA9685 output smoothly.

wrapper to smooth PCA9685 output. Inherits "style" class and composites PCA9685.

Constructor & Destructor Documentation

◆ SmoothPCA9685()

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