-53-
Document Name
AI7688H
Reference Manual
Version
V 2.0
Date 2019/08/08
You can also use config_percent to directly assign period and duty cycle:
Enable Output
After configuration you can enable the PWM output by calling enable(true):
Control a Servo
You can use PWM signal to control a
. A pulse width of 1500us means
the neutral position, while usually 1000ms and 2000ms being the minimum
and maximum position. So the following code resets the servo motor to
neutral position: