mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-04-24 03:00:20 -04:00
Issue correct command for writing microseconds to serv.
This commit is contained in:
@@ -462,7 +462,7 @@ class Servos(object):
|
|||||||
|
|
||||||
def writeMicroseconds(self, pin, uS):
|
def writeMicroseconds(self, pin, uS):
|
||||||
position = self.servo_pos[pin]
|
position = self.servo_pos[pin]
|
||||||
cmd_str = build_cmd_str("svw", (position, uS))
|
cmd_str = build_cmd_str("svwm", (position, uS))
|
||||||
|
|
||||||
self.sr.write(cmd_str)
|
self.sr.write(cmd_str)
|
||||||
self.sr.flush()
|
self.sr.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user