pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

Unit Hall

Example

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

setScreenColor(0x222222)
hall_0 = unit.get(unit.HALL, unit.PORTA)

while True:
  print((str('hall:') + str((hall_0.value()))))
  wait_ms(2)

API

print(hall_0.value())
  • Obtain the current status of the Hall sensor
On This Page