pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

Unit SSR

案例程序

from m5stack import *
from m5ui import *
from uiflow import *
import unit

setScreenColor(0x222222)
ssr_0 = unit.get(unit.SSR, unit.PORTA)

while True:
  ssr_0.ssr_control(1)
  wait_ms(2)

功能说明

ssr_0.ssr_control(1)
  • 开启或断开继电器
    • ON
    • OFF
On This Page