es08a: Add output to python example

Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
Sarah Knepper 2015-01-22 20:11:10 -08:00
parent de70ed8694
commit 09659c62f3

View File

@ -29,14 +29,17 @@ gServo = servo.ES08A(5)
for i in range(0,10):
# Set the servo arm to 0 degrees
gServo.setAngle(0)
print 'Set angle to 0'
time.sleep(1)
# Set the servo arm to 90 degrees
gServo.setAngle(90)
print 'Set angle to 90'
time.sleep(1)
# Set the servo arm to 180 degrees
gServo.setAngle(180)
print 'Set angle to 180'
time.sleep(1)
# Delete the servo object