pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

Flash Light Unit

案例程序

from m5stack import *
from m5stack_ui import *
from uiflow import *
import unit

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
flash_0 = unit.get(unit.FLASH_LIGHT, unit.PORTB)

flash_0.flash_ctrl(7, False, 2)

功能说明

flash_0.flash_ctrl(0, False, 2)
  • 设置flash控制(设置占空比30%-100%,和开关FlashLight)
On This Page