This module does all the serial communication. It knows the hardware protocol and provides a low-level API for talking to the hardware. It can perfectly well be used from the python CLI or in custom python scripts.
This example show how to run a job file.
import driveboard, time
driveboard.connect()
driveboard.jobfile("../library/lasersaur.dba")
while not driveboard.status()['ready']:
time.sleep(1)
print str(driveboard.status()['progress']*100) + '%'
sys.stdout.write('.')
driveboard.close()
find_controller()
connect()
connected()
close()
flash()
build()
reset()
status()
homing()
feedrate(val)
intensity(val)
duration(val)
pixelwidth(val)
realtive()
absolute()
move(x, y, z)
rastermove(x, y, z)
rasterdata(data, start, end)
job(job)
pause()
unpause()
stop()
unstop()
air_on()
air_off()
aux_on()
aux_off()
pulse()
set_offset_table()
set_offset_custom()
def_offset_table(x, y, z)
def_offset_custom(x, y, z)
sel_offset_table()
sel_offset_custom()