UIFlow Guide
Draw basic graphics and text
from m5stack import *
from m5stack_ui import *
from uiflow import *
import unit
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
lcd_0 = unit.get(unit.LCD, unit.PORTA)
lcd_0.fill(0x999999)
lcd_0.text('M5Stack', 0, 0, 0xff0000)
lcd_0.line(0, 10, 50, 10, 0xff0000)
lcd_0.rect(10, 10, 20, 20, 0xff0000)
lcd_0.brightness(0)
lcd_0.show_on()
lcd_0.init_display(135, 240, 1)
lcd_0.brightness(0)
lcd_0.fill(0xff0000)
lcd_0.fill(0xff0000)
lcd_0.fill_rect(0, 0, 0, 0, 0xff0000)
lcd_0.fill_rect(0, 0, 0, 0, 0xff0000)
lcd_0.rotate(4)
lcd_0.hline(0, 0, 0, 0xff0000)
lcd_0.hline(0, 0, 0, 0xff0000)
lcd_0.line(0, 0, 0, 0, 0xff0000)
lcd_0.line(0, 0, 0, 0, 0xff0000)
lcd_0.pixel(0, 0, 0xff0000)
lcd_0.pixel(0, 0, 0xff0000)
lcd_0.rect(0, 0, 0, 0, 0xff0000)
lcd_0.rect(0, 0, 0, 0, 0xff0000)
lcd_0.rotate(0)
lcd_0.show_on()
lcd_0.sleep(0)
lcd_0.text('', 0, 0, 0xff0000)
lcd_0.text('', 0, 0, 0xff0000)
lcd_0.vline(0, 0, 0, 0xff0000)
lcd_0.vline(0, 0, 0, 0xff0000)