3 #include <esp32-hal-ledc.h>
14 #define MAX_SERVO_COUNT 10
15 #define MRM_SERVO_FREQUENCY_HZ 50
17 typedef bool(*BreakCondition)();
22 float _minDegreesPulseMs;
24 float _maxDegreesPulseMs;
25 char _name[MAX_SERVO_COUNT][10];
28 Robot* robotContainer;
48 void add(uint8_t gpioPin = 16,
char* deviceName = (
char *)
"", uint16_t minDegrees = 0, uint16_t maxDegrees = 180,
float minDegreesPulseMs = 1,
float maxDegreesPulseMs = 2, uint8_t timerWidth = 12);
60 void write(uint16_t degrees = 90, uint8_t servoNumber = 0);
Definition: mrm-servo.h:20
void writeInteractive()
Definition: mrm-servo.cpp:119
void add(uint8_t gpioPin=16, char *deviceName=(char *)"", uint16_t minDegrees=0, uint16_t maxDegrees=180, float minDegreesPulseMs=1, float maxDegreesPulseMs=2, uint8_t timerWidth=12)
Definition: mrm-servo.cpp:25
Mrm_servo(Robot *robot=NULL)
Definition: mrm-servo.cpp:7
void test()
Definition: mrm-servo.cpp:79
void write(uint16_t degrees=90, uint8_t servoNumber=0)
Definition: mrm-servo.cpp:103
Definition: mrm-robot.h:42