Created
July 22, 2017 22:51
-
-
Save rdenadai/859a1f90984bc7995b82823994334576 to your computer and use it in GitHub Desktop.
Simple explanation and usage of ESP8266 12E and MicroPython
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ESP8266 12E + MicroPython | |
## Install tools to connect to the board | |
pip install esptool ampy | |
apt install picocom | |
## Erase | Flash the firmware | |
esptool.py --port /dev/ttyUSB0 erase_flash | |
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin | |
## Usage | |
# Connect to REPL | |
picocom /dev/ttyUSB0 -b115200 | |
## Download a file | |
ampy --port /dev/ttyUSB0 get main.py | |
## Upload a file | |
ampy --port /dev/ttyUSB0 put main.py /main.y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment