From 2f9c0a372de61cf0c4e910f6c996e31d430aa2b2 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 13 May 2009 18:55:55 +0200 Subject: * digital/io/tools: - added servo commands. --- digital/io/tools/io/io.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'digital/io') diff --git a/digital/io/tools/io/io.py b/digital/io/tools/io/io.py index 4cf26627..26e19f76 100644 --- a/digital/io/tools/io/io.py +++ b/digital/io/tools/io/io.py @@ -49,6 +49,12 @@ class Proto: self.proto.send ('z') self.proto.send ('z') + def servo_pos (self, servo, pos): + self.proto.send ('P', 'BB', servo, pos) + + def servo (self, servo, high_time): + self.proto.send ('s', 'BB', servo, high_time) + def close (self): self.reset () self.wait (lambda: True) -- cgit v1.2.3