Update Mass Storage App

Wait for one second before calling disable command
andrejusk/bday
Kimball Johnson 2018-09-01 16:45:43 +01:00 committed by GitHub
parent 7526b4b9b6
commit 9f39749f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6,13 +6,14 @@ ___dependencies___ = ["dialogs", "ugfx_helper"]
___categories___ = ["EMF"]
___bootstrapped___ = True
import ugfx, tilda, ugfx_helper, dialogs, app
import ugfx, tilda, ugfx_helper, dialogs, app, time
ugfx_helper.init()
ugfx.clear()
print("enabling USB storage...")
tilda.storage_enable_usb()
time.sleep(1)
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."):
print("Waiting for USB mass storage to be unmounted...")