Difference between revisions of "Projects:Badge/ampy"

From SHA2017 Wiki
Jump to: navigation, search
(Created page with "[https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy Install ampy] <nowiki>Usage: ampy [OPTIONS] COMMAND [ARGS]... ampy - Adafruit MicroPyt...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy Install ampy]
+
{{Badgemenu}}
 +
[https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy Install ampy] just run <code>pip install adafruit-ampy</code>
  
 
  <nowiki>Usage: ampy [OPTIONS] COMMAND [ARGS]...
 
  <nowiki>Usage: ampy [OPTIONS] COMMAND [ARGS]...
Line 26: Line 27:
 
   rmdir  Forcefully remove a folder and all its...
 
   rmdir  Forcefully remove a folder and all its...
 
   run    Run a script and print its output.</nowiki>
 
   run    Run a script and print its output.</nowiki>
 +
 +
Alternatives: [[Projects:Badge/mpfshell|mpfshell]]

Latest revision as of 10:38, 26 June 2017

Badge Badge project - Documentation - Github - Sponsorship - Organisation

Install ampy just run pip install adafruit-ampy

Usage: ampy [OPTIONS] COMMAND [ARGS]...

  ampy - Adafruit MicroPython Tool

  Ampy is a tool to control MicroPython boards over a serial connection.
  Using ampy you can manipulate files on the board's internal filesystem and
  even run scripts.

Options:
  -p, --port PORT  Name of serial port for connected board.  Can optionally
                   specify with AMPY_PORT environemnt variable.  [required]
  -b, --baud BAUD  Baud rate for the serial connection (default 115200).  Can
                   optionally specify with AMPY_BAUD environment variable.
  --version        Show the version and exit.
  --help           Show this message and exit.

Commands:
  get    Retrieve a file from the board.
  ls     List contents of a directory on the board.
  mkdir  Create a directory on the board.
  put    Put a file or folder and its contents on the...
  reset  Perform soft reset/reboot of the board.
  rm     Remove a file from the board.
  rmdir  Forcefully remove a folder and all its...
  run    Run a script and print its output.

Alternatives: mpfshell