master
adligeerik 6 years ago
parent b08e51f1d3
commit 0fbc0c02e0

@ -0,0 +1,19 @@
import time
from glob import glob
from pydobot import Dobot
available_ports = glob('/dev/cu*usb*') # mask for OSX Dobot port
if len(available_ports) == 0:
print('no port found for Dobot Magician')
exit(1)
device = Dobot(port=available_ports[0])
time.sleep(0.5)
device.speed(100)
device.go(250.0, 0.0, 25.0)
device.speed(10)
device.go(250.0, 0.0, 0.0)
time.sleep(2)
device.close()
Loading…
Cancel
Save