UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
from base.Motion import Motion
import time
motion = Motion()
motion.set_motor_speed(1, 127)
motion.set_motor_speed(2, -127)
while True:
motion.set_servo_angle(1, 90)
motion.set_servo_angle(2, 90)
motion.set_servo_angle(3, 90)
motion.set_servo_angle(4, 90)
wait(1)
motion.set_servo_angle(1, 180)
motion.set_servo_angle(2, 180)
motion.set_servo_angle(3, 180)
motion.set_servo_angle(4, 180)
wait(1)
wait_ms(2)
from base.Motion import Motion
motion = Motion()
motion.set_motor_speed(ch, speed)
motion.get_motor_speed(ch)
motion.set_servo_angle(ch, angle)
motion.get_servo_angle(ch)
motion.set_servo_pulse(ch, pulse)
motion.get_servo_pulse(ch)