![]() ![]() ![]() Note that the execution of this command successfully will not give any textual result, as shown in figure 1.įigure 1 – Successful upload of the test.txt file to MicroPython file system. This should upload the file to the file system of MicroPython. Upon turning off and on the ESP8266 / ESP32 again, the error repeats in the first execution of a command and then everything works fine again. After that, all the executions work fine without any error. Important: At the time of writing and with my setup, the first time I execute a ampy command, such as uploading a file, it results in an error being printed to the command line. There, to upload the file, just hit the following command, changing COM5 with the com port where your ESP8266 / ESP32 device is. Then, open the command line and navigate to the file directory. txt extension, but since it is a text file we will use it). txt extension (it doesn’t need to have a. ![]() For this example, we will write two sentences: But the first thing we need to do is creating a simple file with some content on a directory of our choice. Uploading a file with ampy is very straightforward as we will see. This was tested on Windows 8 operating system. If you prefer, you can check Adafruit’s installation instructions here. You can check this previous tutorial, which shows how to install it using Python’s pip. Since we will need to use ampy, we are assuming a previous installation of the tool. ![]() The prints shown here are for the tests on the ESP32. This tutorial was tested on both the ESP8266 and the ESP32. The objective of this post is to explain how to upload files from a computer to the MicroPython file system, using a tool called ampy. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |