UIFlow Guide
Set the vibration intensity and vibrate once every second.
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)