RasPi/CopterController/PCA9685/PCA9685.h
2015-02-04 20:37:34 -07:00

18 lines
405 B
C++

#ifndef PCA9685_H
#define PCA9685_H
class PCA9685
{
public:
PCA9685(); // no-args constructor: uses default device address @ 50hz
PCA9685( int devAddr ); // frequency: 50hz
void setFrequency( int hertz );
void setPwm( int channel, int on, int off ); // for standard servo behavior: 150 <= value <= 600
void setAllPwm( int on, int off );
private:
int i2cFileHandle;
};
#endif