1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 18:16:13 +01:00
CommandStation-EX/PWMServoDriver.h

22 lines
447 B
C
Raw Normal View History

2020-06-23 21:01:43 +02:00
/*!
* @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(byte servoNum, uint16_t pos);
2020-06-23 21:01:43 +02:00
private:
static byte setupFlags;
static byte failFlags;
static bool setup(int board);
2020-06-23 21:01:43 +02:00
static void writeRegister(uint8_t i2caddr,uint8_t hardwareRegister, uint8_t d);
};
#endif