Exemplo n.º 1
0
from motor_driver import MotorDriver
from time import sleep

motor = MotorDriver()

motor.run(0, 0, 75)
sleep(1)
motor.run(0, 1, 75)
sleep(1)
motor.stop(0)

motor.run(1, 0, 75)
sleep(1)
motor.run(1, 1, 75)
sleep(1)
motor.stop(1)
Exemplo n.º 2
0
#!/usr/bin/env python3

from ultrasonic_driver import UltrasonicDriver
from motor_driver import MotorDriver
import time

md = MotorDriver()

time.sleep(15)
for i in range(6):
    print('sending', i)
    md.motor_send(1,100,'fwd')

time.sleep(10)
print('stopping')
md.stop()