UIFlow Guide
Draw text, lines, circles and wake the buzzer
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
glass_0 = unit.get(unit.GLASS_OLED, unit.PORTA)
glass_0.draw_text('M5Stack', 0, 0, 8, 1)
glass_0.draw_line(0, 10, 50, 10, 1)
glass_0.draw_circle(30, 30, 8, 1)
glass_0.disp_show()
glass_0.buzzer_freq(1000, 50)
glass_0.buzzer_ctrl(1)
wait(1)
glass_0.buzzer_ctrl(0)
glass_0.disp_ctrl(1)
glass_0.buzzer_freq(1000, 50)
glass_0.colour_reverse(0)
glass_0.disp_clear()
glass_0.disp_ctrl(1)
glass_0.disp_invert(0, 0)
glass_0.disp_show()
glass_0.draw_circle(0, 0, 5, 1)
glass_0.draw_line(0, 0, 10, 10, 1)
glass_0.draw_pixel(0, 0, 1)
glass_0.draw_text('', 0, 0, 8, 1)
print(glass_0.get_button_status(0))
print(glass_0.get_firmware_version())