mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-24 15:30:11 +00:00
12 lines
399 B
JavaScript
12 lines
399 B
JavaScript
|
let usbdisk = require("usbdisk");
|
||
|
// print("Creating image...");
|
||
|
// usbdisk.createImage("/ext/apps_data/mass_storage/128MB.img", 128 * 1024 * 1024);
|
||
|
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");
|