t108a.py
00001
00002
00003
00004
00005 import t108b as pic
00006
00007
00008
00009
00010
00011
00012 line_sensor_right = pic.digital_io(1, 8, True)
00013 right_wheel_stopped = 938
00014
00015 def drive_forward():
00016 right_wheel.setCounts(right_wheel_forward)
00017
00018 def stop_driving():
00019 right_wheel.setCounts(right_wheel_stopped)
00020
00021
00022
00023
00024
00025
00026 print "Running..."
00027 i = 0;
00028 while i < 10000:
00029 i = i + 1
00030
00031 if line_sensor_right.get():
00032 pass