Data Sheet

Servo Driver HAT
SET PWM PLUSE WIDTH
setPWM(self,channel,on,off)
This function is used to set PWM pulse in certain channel, set its high level being (on)
and finish (off) time.
Parameter
- channel: PWM channel (0~15)
- on: When the signal change from Low to High (0~4095)
- off: When the signal changed from High to Low (0~4095)
Example:
The example is set channel 15 begin to output High level at 0 and finish at 1024. That
is the High level (0-1024) duty rate is 25%, and Low level (1024-4095) duty rate is 57%,
cycle is (1/freq).
pwm.setPWM(15 ,0 ,1024)
SET SERVO PULSE
setServoPulse (self,channel, pulse)
This function is used to set the pulse of servo.