UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
import time
setScreenColor(0x222222)
grbl = module.get(module.GRBL)
grbl.set_mode("distance")
while True:
grbl.turn(10, 10, 10, 100)
wait(5)
grbl.turn((-10), (-10), (-10), 100)
wait(5)
wait_ms(2)
grbl.set_mode("distance")
grbl.turn(10, 10, 10, speed)
grbl.g_code('')
grbl.wait_idle()
grbl.in_lock()
grbl.lock_motor()
grbl.read_idle()
grbl.read_line()
grbl.unlock()
grbl.unlock_motor()
grbl.read_clean()