https://github.com/radeklat/esp8266-deploy-micropython
Deployment script and base project structure for ESP8266 with Serial port emulated over USB
https://github.com/radeklat/esp8266-deploy-micropython
esp8266 micropython
Last synced: 2 months ago
JSON representation
Deployment script and base project structure for ESP8266 with Serial port emulated over USB
- Host: GitHub
- URL: https://github.com/radeklat/esp8266-deploy-micropython
- Owner: radeklat
- License: mit
- Created: 2018-05-14T18:52:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T17:34:57.000Z (about 8 years ago)
- Last Synced: 2025-03-29T01:19:02.077Z (about 1 year ago)
- Topics: esp8266, micropython
- Language: Shell
- Size: 14.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP8266 Deploy MicroPython
Deployment script and base project structure for ESP8266 with Serial port emulated over USB
(such as NodeMCU). You can run the deployment script as a run command from PyCharm.
The deployment script has been tested on Linux and Windows. It may work on Unix based systems as well.
Pull requests are welcomed.
## Dependencies
* bash, find (on Windows available as part of [Cygwin](https://cygwin.com/install.html) or
[Git Bash](https://git-scm.com/download/win)).
* [Adafruit MicroPython Tool](https://github.com/adafruit/ampy#installation) (ampy)
## Functions
1. Detects emulated serial port where device is connected.
1. Deletes all files on the device and puts there all new ones. Or updates only changes files (use the `-u` or `--update` option)
1. Opens console with the device (use the `-c` or `--console` option)
1. Goes to _step 1_ when console closes (use the `-l` or `--loop` option)
## Usage
### Windows
`bash deploy.sh`
to clean all files and push the entire content of the _src_ folder.
`bash deploy.sh -u`
to not remove anything and push only files and folders changed since last run of the script.
### Other OSes
Run the same as above with `sudo` as it requires elevated privileges to access the serial port.