mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
21 lines
422 B
C++
21 lines
422 B
C++
/*!
|
|
* @file PWMServoDriver.h
|
|
*
|
|
* Used to set servo positions on an I2C bus with 1 or more PCA96685 boards.
|
|
*/
|
|
#ifndef PWMServoDriver_H
|
|
#define PWMServoDriver_H
|
|
|
|
|
|
class PWMServoDriver {
|
|
public:
|
|
static void setServo(short servoNum, uint16_t pos);
|
|
|
|
private:
|
|
static byte setupFlags;
|
|
static void setup(int board);
|
|
static void writeRegister(uint8_t i2caddr,uint8_t hardwareRegister, uint8_t d);
|
|
};
|
|
|
|
#endif
|