Flipper/Applications/Custom (UL, RM)/Unleashed/Scripts/js_examples/usbdisk.js

10 lines
284 B
JavaScript
Raw Normal View History

2024-08-07 03:09:52 +00:00
let usbdisk = require("usbdisk");
print("Starting UsbDisk...");
usbdisk.start("/ext/apps_data/mass_storage/128MB.img");
print("Started, waiting until ejected...");
while (!usbdisk.wasEjected()) {
delay(1000);
}
print("Ejected, stopping UsbDisk...");
usbdisk.stop();
print("Done");