UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
from MediaTrans.Mqtt_Printer import Mqtt_Printer
setScreenColor(0x222222)
def buttonA_wasPressed():
# global params
mqtt.text_print('Hello', 10, 0)
pass
btnA.wasPressed(buttonA_wasPressed)
mqtt = Mqtt_Printer('94:B9:7E:AC:41:81')
mqtt.start()
from MediaTrans.Mqtt_Printer import Mqtt_Printer
mqtt = Mqtt_Printer('94:B9:7E:AC:41:81')
mqtt.start()
mqtt.text_print('Hai', 10, 0)
mqtt.bar_print('1234')
mqtt.qr_print('1234')