You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
392 B

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()