UIFlow Guide
设置震动强度,并间隔1秒震动一次
from m5stack import *
from m5stack_ui import *
from uiflow import *
import time
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
power.setVibrationIntensity(255)
while True:
power.setVibrationEnable(True)
wait(1)
power.setVibrationEnable(False)
wait(1)
wait_ms(2)
power.setVibrationEnable(True)
power.setVibrationEnable(False)
power.setVibrationEnable(True)
wait(2)
power.setVibrationEnable(False)
wait_ms(2)
power.setVibrationIntensity(255)