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

heart beat a PCA9685. More...

#include <Noiasca_PCA9685.h>

Inheritance diagram for HeartbeatPCA9685:
Heartbeat< PCA9685 >

Public Member Functions

 HeartbeatPCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel)
 
- Public Member Functions inherited from Heartbeat< PCA9685 >
 Heartbeat (PCA9685 &obj)
 heart beat LED More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setCurrentBrightness (uint8_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint8_t maxBrightness)
 set the maximum brightness More...
 
void setMinBrightness (uint8_t minBrightness)
 set the minium brightness More...
 
void on () override
 switch on
 
void off () override
 switch off
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

heart beat a PCA9685.

wrapper to heartbeat an output on a PCA9685. Inherits class heartbeat and composites PCA9685

Constructor & Destructor Documentation

◆ HeartbeatPCA9685()

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