#id refGoExample.py 2023-06-15 oh # Fullmo MovingCap CODE - micropython example. # original file name: refGoExample.py # This example shows how to use the simplistic RefGo ASCII protocol commands # for drive control, instead of the mcdrive library. # Both mcdrive and refgo can be used in combination, of course. import sys import refgo # reset actual position to zero refgo.cmd("REF35") sys.wait(5000) while(1): # relative movement refgo.cmd("GW1000") # check if movement finished while (refgo.cmd("TS") != 1): pass sys.wait(1000)