English
English
简体中文
日本語

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

Unit Mini BPS

Example

Obtain the air pressure and temperature

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

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
bps_0 = unit.get(unit.BPS, unit.PORTA)

while True:
  print((str('temperature:') + str((bps_0.temperature()))))
  print((str('pressure:') + str((bps_0.pressure()))))
  wait_ms(2)

API

print((str('temperature:') + str((bps_0.temperature()))))
  • Obtain the equipment to measure the pressure
print((str('pressure:') + str((bps_0.pressure()))))
  • Obtain the equipment measurement document
Page Tools
PDF
On This Page