UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
import time
setScreenColor(0x222222)
servo2 = module.get(module.SERVO2)
while True:
servo2.position(0, 0)
wait_ms(100)
servo2.position(0, 90)
wait_ms(100)
wait_ms(2)
servo2.position(ch, deg)
servo2.position(ch, duty=0)
servo2.position(ch, us=400)
servo2.release(ch)