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!
How to upload ssd1306.py into my ESP32 without using THONNY
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: How to upload ssd1306.py into my ESP32 without using THONNY
I use rshell.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: How to upload ssd1306.py into my ESP32 without using THONNY
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)
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
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.
Code: Select all
mpremote cp ssd1306.py :
John Sheehan