Wingmax
New Member

With little modification from the previous program (Driving a servo motor-Timer0, Timer2), we can control the position of the servo motor.
View attachment servo_con.txt
A switch is connected to PortA.1 and PortA.2.
The shaft will be at the middle position first. When switch_A is pressed, it'll move one step to the left. When switch_B is pressed, it'll move one step to the right.