Page 1 of 1
How to upload ssd1306.py into my ESP32 without using THONNY
Posted: Thu Sep 02, 2021 8:37 pm
by Core28
Hi, I'm a complete MicroPython newbie. I will soon start using THONNY or other IDEs. But for now, just for the sake of it, how can I upload ssd1306.py, or any other library, into the REPL of my ESP32, just using a terminal program. I'm using Kitty.
Thanx for your help!
Re: How to upload ssd1306.py into my ESP32 without using THONNY
Posted: Fri Sep 03, 2021 8:04 am
by pythoncoder
Re: How to upload ssd1306.py into my ESP32 without using THONNY
Posted: Fri Sep 03, 2021 4:45 pm
by dhylands
I also wrote a little script that takes a list of files, and it generates a python script which will write those files out. You can run that on your board using pyboard.py (which requires disconnecting your terminal program).
https://github.com/dhylands/upy-example ... e_files.py
When you run make_files.py you pass it a list of filenames. It will then generate a files.py file that you can run on your board and it will write out the files that you passed into make_files.py.
Personally, I use
rshell (disclaimer - I wrote rshell)
Re: How to upload ssd1306.py into my ESP32 without using THONNY
Posted: Sat Sep 04, 2021 7:33 pm
by JennaSys
If you are using one of the newer builds (1.16 or 1.17) you can use the new
mpremote CLI tool:
which will copy the file from your local drive to the ESP device.