3 #include "wiringPiInclude.h" 6 #define PCA9685_ADDRESS 0x40 13 #define LED0_ON_L 0x06 14 #define LED0_ON_H 0x07 15 #define LED0_OFF_L 0x08 16 #define LED0_OFF_H 0x09 17 #define ALL_LED_ON_L 0xFA 18 #define ALL_LED_ON_H 0xFB 19 #define ALL_LED_OFF_L 0xFC 20 #define ALL_LED_OFF_H 0xFD 58 bool setMotor(
int motorID,
int speed);
80 void setPwm(
int channel,
int on,
int off);
102 void setPwmFrequency(
double freqHz);
void setAllPwm(int on, int off)
bool setMotor(int motorID, int speed)
bool stopMotor(int motorID)
AdafruitPWMServoHat(int pwmFrequency=60)
void setPwm(int channel, int on, int off)