pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

OP 90 180

案例程序

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

setScreenColor(0x222222)
OP90_0 = unit.get(unit.OP, unit.PORTA)

while True:
  print((str('Status:') + str((OP90_0.value()))))
  wait_ms(2)

功能说明

print(OP90_0.value())
  • 获取设备检测状态
On This Page