pdf-icon

UIFlow Guide

UiFlow1 Blockly

Event

Unit

UiFlow1 Project

Unit Angle

Example

Obtain the knob value

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

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
angle_0 = unit.get(unit.ANGLE, unit.PORTB)

while True:
  print(angle_0.read())
  wait_ms(10)
  wait_ms(2)

API

print((str('value:') + str((angle_0.read()))))
  • Obtain the knob value
On This Page