Ampy to transfer files to Pycom microcontroller: Difference between revisions

From Sensors in Schools
Jump to navigation Jump to search
(Created page with "= Ampy to transfer files to Pycom microcontroller = = Authors = For more information contact Adam Simankowicz or Edmond Lascaris = References = * [https://learn.adafruit.com/micropython-basics-load-files-and-run-code Micropython basics- Load and run code] * [https://github.com/scientifichackers/ampy Ampy GitHub] * [https://github.com/dhylands/rshell rshell alternative - not used] = Installation of Ampy = <syntaxhighlight lang="bash"> sudo pip3 install adafruit-ampy...")
 
Line 31: Line 31:


= Using the REPL =
= Using the REPL =
* '''REPL''' is an abbreviation of Read, Evaluate, Print, and Loop
* '''REPL''' is an abbreviation (acronym) for Read, Evaluate, Print, and Loop
* Developers use REPL Python to communicate with the Python Interpreter or Python Shell.  
* Developers use REPL Python to communicate with the Python Interpreter or Python Shell.  
* You can also input commands and python code directly in the REPL and see the results displayed immediately.
* You can also input commands and python code directly in the REPL and see the results displayed immediately.


== Installing screen to use REPL ==
== Installing screen to use REPL ==

Revision as of 20:54, 28 July 2023

Ampy to transfer files to Pycom microcontroller

Authors

For more information contact Adam Simankowicz or Edmond Lascaris

References

Installation of Ampy

sudo pip3 install adafruit-ampy
  • To check that ampy has installed correct enter the following in the Terminal.
ampy --help
  • To upgrade ampy to the latest version enter the code
sudo pip3 install adafruit-ampy --upgrade

Uploading and running micropython programs

Using the REPL

  • REPL is an abbreviation (acronym) for Read, Evaluate, Print, and Loop
  • Developers use REPL Python to communicate with the Python Interpreter or Python Shell.
  • You can also input commands and python code directly in the REPL and see the results displayed immediately.

Installing screen to use REPL