Update Mass Storage App
Wait for one second before calling disable commandandrejusk/bday
parent
7526b4b9b6
commit
9f39749f0f
|
@ -6,13 +6,14 @@ ___dependencies___ = ["dialogs", "ugfx_helper"]
|
||||||
___categories___ = ["EMF"]
|
___categories___ = ["EMF"]
|
||||||
___bootstrapped___ = True
|
___bootstrapped___ = True
|
||||||
|
|
||||||
import ugfx, tilda, ugfx_helper, dialogs, app
|
import ugfx, tilda, ugfx_helper, dialogs, app, time
|
||||||
|
|
||||||
ugfx_helper.init()
|
ugfx_helper.init()
|
||||||
ugfx.clear()
|
ugfx.clear()
|
||||||
|
|
||||||
print("enabling USB storage...")
|
print("enabling USB storage...")
|
||||||
tilda.storage_enable_usb()
|
tilda.storage_enable_usb()
|
||||||
|
time.sleep(1)
|
||||||
print("DONE")
|
print("DONE")
|
||||||
with dialogs.WaitingMessage(title="Mass Storage Enabled", text="You can now use the badge like a USB key.\nPlease safely eject afterwards. This app will close automatically."):
|
with dialogs.WaitingMessage(title="Mass Storage Enabled", text="You can now use the badge like a USB key.\nPlease safely eject afterwards. This app will close automatically."):
|
||||||
print("Waiting for USB mass storage to be unmounted...")
|
print("Waiting for USB mass storage to be unmounted...")
|
||||||
|
|
Loading…
Reference in New Issue