I have been banging my head against the following for the past few hours.
Device: Core2 running 1.9.8
Tool: UIflow (1) running V1.13.5
When using the run functionality from UIflow everything works as it should. The reason it does is that the WiFi is already connected. When I then download the code into the device it needs to connect to WiFi on a normal run. After connecting to it my label is gone and I cannot seem to find any way to get its text to show again.
As an example, this works fine using run:
Or in code:
from m5stack import *
from m5stack_ui import *
from uiflow import *
import wifiCfg
import time
import unit
screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
pbhub_0 = unit.get(unit.PBHUB, unit.PORTA)
Status = M5Label('Status', x=0, y=0, color=0x000, font=FONT_MONT_26, parent=None)
if not (wifiCfg.wlan_sta.isconnected()):
wifiCfg.autoConnect(lcdShow=False)
while True:
Status.set_text('0')
wait(1)
Status.set_text('1')
wait(1)
wait_ms(2)
Using download and letting the device start the program this shows the WiFi connecting and afterwards nothing happening on screen. If need be I can draw stuff on screen through the graphic blocks, including text, but my label remains gone.
Things I have tried:
- pretty much anything in the label section
- setting the background color
- Lcd.clear / Clear screen (followed by pretty much anything above)
- using the disconnect from "Original Network Function" and then a connect in hopes I can make this reproducible when using 'Run' (no luck) so I can at least diagnose it more easily
I'm out of ideas, does anybody have any idea what might be going on?