Data Sheet

Servo Driver HAT
NoteBefore this function, you should set PWM frequency to 50Hz first, otherwise
servo works improperly.
Parameters:
- channel: PWM channel (0-`5)
- pulse: pulse width outputted, unit is us 500~2500
Examples
This example will output 1500us PWM signal to channel 0. That is rotate the servo 90
degree.
pwm. setServoPulse (0,1500)
The relationship between pulse and degree are:
500 ------- 0 °
1000 ------- 45 °
1500 ------- 90 °
2000 ------- 135 °
2500 ------- 180 °