Editing FileIO
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 46: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | == | + | == Copy File from Microcontroller to Local Machine == |
Files can be copied via the command line tool [https://github.com/scientifichackers/ampy Adafruit MicroPython tool] (ampy). | Files can be copied via the command line tool [https://github.com/scientifichackers/ampy Adafruit MicroPython tool] (ampy). | ||
<syntaxhighlight lang="Bash"> | <syntaxhighlight lang="Bash"> | ||
Line 52: | Line 52: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | To | + | To copy a file from the microcontroller to the local machine use the following command: |
<syntaxhighlight lang="Bash"> | <syntaxhighlight lang="Bash"> | ||
− | ampy --port /dev/tty.usbmodem143101 get FILE_NAME_OF_REMOTE_FILE.FILE_EXTENSION | + | ampy --port /dev/tty.usbmodem143101 get FILE_NAME_OF_REMOTE_FILE.FILE_EXTENSION FILE_NAME_FOR_THE_REOTE_FILE.FILE_EXTENSION |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:MicroPython]] | [[Category:MicroPython]] |