Released:
ampy (Adafruit MicroPython tool) is a command line tool to interact with a CircuitPython or MicroPython board over a serial connection.
Configuration Once you have the hardware setup you're ready to configure the BeagleBone Black to use your WiFi adapter. Kernel Upgrade First you will want to make sure you're running the very latest version of the 3.8 series kernel. Impact Driver Prosthetic Device Ian David is a maker who is developing various partial-hand prosthetic devices and chronically his journey on YouTube. In this video, he demonstrates an impact driver he created to fit his DIY prosthetic socket that he’s been developing.
Project description
Adafruit MicroPython Tool (ampy) - Utility to interact with a CircuitPython or MicroPython board over a serial connection.
Ampy is meant to be a simple command line tool to manipulate files and run code on a CircuitPython orMicroPython board over its serial connection.With ampy you can send files from your computer to theboard's file system, download files from a board to your computer, and even send a Python scriptto a board to be executed.
Note that ampy by design is meant to be simple and does not support advanced interaction like a shellor terminal to send input to a board. Check out other MicroPython toolslike rshellor mpfshell for more advanced interaction with boards.
Installation
You can use ampy with either Python 2.7.x or 3.x and can install it easily fromPython's package index. On MacOS or Linux, in a terminal run the following command (assumingPython 3):
On Windows, do:
Note on some Linux and Mac OSX systems you might need to run as root with sudo:
If you don't have Python 3 then try using Python 2 with:
Once installed verify you can run the ampy program and get help output:
You should see usage information displayed like below:
If you'd like to install from the Github source then use the standard Pythonsetup.py install (or develop mode):
Note to run the unit tests on Python 2 you must install the mock library:
Usage
Ampy is made to talk to a CircuitPython MicroPython board over its serial connection. You willneed your board connected and any drivers to access it serial port installed.Then for example to list the files on the board run a command like:
You should see a list of files on the board's root directory printed to theterminal. Note that you'll need to change the port parameter to the name or pathto the serial port that the MicroPython board is connected to.
Other commands are available, run ampy with --help to see more information:
Each subcommand has its own help, for example to see help for the ls command run (note youunfortunately must have a board connected and serial port specified):
Configuration
For convenience you can set an AMPY_PORT
environment variable which will be usedif the port parameter is not specified. For example on Linux or OSX:
Or on Windows (untested) try the SET command:
Adafruit Windows Driver
Similarly, you can set AMPY_BAUD
and AMPY_DELAY
to control your baud rate andthe delay before entering RAW MODE.
To set these variables automatically each time you run ampy
, copy them into afile named .ampy
:
You can put the .ampy
file in your working directory, one of its parents, or inyour home directory.
Release historyRelease notifications | RSS feed
1.0.7
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
0.6.3
0.6.2
Adafruit Industries Port Devices Driver Updater
0.6.1
0.6.0
0.5.1
0.5.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size adafruit_ampy-1.0.7-py2.py3-none-any.whl (16.6 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size adafruit-ampy-1.0.7.tar.gz (18.3 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for adafruit_ampy-1.0.7-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 46cbb1ebb585c2c01b9d34625dbef618df95c4256a1fc6ac13cb13bbd4a8b6c0 |
MD5 | 0d4e8d1912783c8f745e97b6d41b8c5c |
BLAKE2-256 | 5999f8635577c9a11962ec43714b3fc3d4583070e8f292789b4683979c4abfec |
Adafruit Industries Address
CloseAdafruit Industries Llc Ports Virus
Hashes for adafruit-ampy-1.0.7.tar.gz
Adafruit Industries Port Devices Driver Download
Algorithm | Hash digest |
---|---|
SHA256 | cd8d6b831a1c76d712e30e224e3945428f77bb0c6cccbf06239b31aaf4d4e5b7 |
MD5 | fcdfc129caf3b6087aad2362557d873e |
BLAKE2-256 | 01041131550fb49a8c1ccf459892208569179acc48a3c1ae5b44236b9bb64464 |