UIFlow Guide
Rotates the servo to different positions every second.
from m5stack import *
from m5ui import *
from uiflow import *
import time
import hat
setScreenColor(0x111111)
hat_servo_0 = hat.get(hat.SERVO)
while True:
hat_servo_0.write_angle(0)
wait(1)
hat_servo_0.write_angle(90)
wait(1)
hat_servo_0.write_angle(180)
wait(1)
wait_ms(2)
hat_servo_0.write_angle(0)
hat_servo_0.write_us(600)