Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- from gpiozero import CamJamKitRobot, DistanceSensor
- bot = CamJamKitRobot()
- front = DistanceSensor(24,25)
- while True:
- bot.forward()
- front.wait_for_in_range()
- bot.stop()
- bot.reverse()
- sleep(0.25)
- bot.left()
- sleep(1)
Add Comment
Please, Sign In to add comment