brilliantlabsAR / monocle-micropython

Micropython ported to the Monocle
ISC License
221 stars 27 forks source link

tools: add upload_file.py that uploads a file under the same path #268

Closed josuah closed 1 year ago

josuah commented 1 year ago

Here is the behavior:

$ python upload_file.py README.md
uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '6e400001-b5a3-f393-e0a9-e50e24dcca9e', 'e5700001-7bac-429a-b4ce-57ff900f479d']
Connected to the Monocle
MicroPython v1.20.0-261-g813d559bc on 2023-07-06; Monocle on nRF52832
Type "help()" for more information.
>>>
>>>
>>> switching the terminal to raw mode
>>> opening a file to write to
>>> writing the data to the file
>>> closing the file so that the write() really take effect
>>> switch back to friendly mode
>>> upload done!

Device was disconnected.
$