Timing issue with servo #10302
-
I have a pyboard v1.1 with the latest firmware v1.19.1 and when run the code below from the REPL prompt, the servo moves properly.
However, if I run the above one after the other in one line, then only the last s.angle(90) statement is executed.
The same occurs if I try to run the first line-by-line code inside a script in the SD card. Only the last s.angle(90) statement is executed. Is this the expected behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to leave time after each operation for the servo to complete its movement. |
Beta Was this translation helpful? Give feedback.
You need to leave time after each operation for the servo to complete its movement.