You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Wait for exit
This commit is contained in:
@@ -81,9 +81,8 @@ status.set_style_text_color(lv.color_hex(0xFFFFFF), 0)
|
||||
status.set_style_text_font(lv.font_unscii_8, 0)
|
||||
|
||||
summary = "Running RAM memory tests...\n\n"
|
||||
summary += "=== Memory Allocation Test Summary ===\n"
|
||||
summary += "Buffer Size (bytes) | Max Allocated\n"
|
||||
summary += "-" * 30 + "\n"
|
||||
summary += "-----------------------------------\n"
|
||||
status.set_text(summary)
|
||||
|
||||
while canary.is_valid():
|
||||
@@ -107,6 +106,11 @@ while canary.is_valid():
|
||||
status.set_text(summary)
|
||||
|
||||
# Print summary report
|
||||
summary += "\n" + "=" * 30 + "\n\n"
|
||||
summary += "\n"
|
||||
summary += "===================================\n"
|
||||
summary += "Test completed.\n"
|
||||
status.set_text(summary)
|
||||
|
||||
# Wait until the user stops the app
|
||||
while canary.is_valid():
|
||||
time.sleep_ms(100)
|
||||
|
||||
Reference in New Issue
Block a user