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

a on/off one output on PCA9685 More...

#include <Noiasca_PCA9685.h>

Inheritance diagram for OnOffPCA9685:
OnOff< PCA9685 >

Public Member Functions

 OnOffPCA9685 (Adafruit_PWMServoDriver &pwm, uint16_t pixel)
 
- Public Member Functions inherited from OnOff< PCA9685 >
void off () override
 switch output off More...
 
void on () override
 switch output off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setMaxBrightness (uint8_t newBrightness)
 set the maximum brightness More...
 
void toggle ()
 switch between on or off state
 

Detailed Description

a on/off one output on PCA9685

wrapper for an simple on/off on a PCA9685. This class provides a simple on() off() interface for a PCA9685. There is no effect during runtime. Inherits class pulse and composites PCA9685

Constructor & Destructor Documentation

◆ OnOffPCA9685()

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