Skip to content

Instantly share code, notes, and snippets.

@rdenadai
Created July 22, 2017 22:51
Show Gist options
  • Save rdenadai/859a1f90984bc7995b82823994334576 to your computer and use it in GitHub Desktop.
Save rdenadai/859a1f90984bc7995b82823994334576 to your computer and use it in GitHub Desktop.
Simple explanation and usage of ESP8266 12E and MicroPython
# 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