From 0b6f61932fbc3c9e60d668194ee7f012e8b81cb7 Mon Sep 17 00:00:00 2001 From: Simon Pirkelmann Date: Fri, 12 Apr 2019 19:18:00 +0200 Subject: [PATCH] added setup notes --- micropython_firmware/setup_notes.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 micropython_firmware/setup_notes.txt diff --git a/micropython_firmware/setup_notes.txt b/micropython_firmware/setup_notes.txt new file mode 100644 index 0000000..91ca944 --- /dev/null +++ b/micropython_firmware/setup_notes.txt @@ -0,0 +1,23 @@ +Flashing: + esptool.py --port /dev/ttyUSB0 erase_flash + esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-20190125-v1.10.bin + +Setting up webrepl: + Connect using picocom: + $ picocom /dev/ttyUSB0 -b115200 + + >>> import webrepl_setup + -> enable, set password and reboot + + Connect to wifi: + >>> import network + >>> sta_if = network.WLAN(network.STA_IF) + >>> sta_if.active(True) + >>> sta_if.connect("", "") + >>> sta_if.ifconfig() # this prints your IP + +Connect via online Webrepl: + -> http://micropython.org/webrepl + - Enter IP from above and click connect. Login with password. + - Upload boot.py via Webrepl to automatically connect to wifi and start webrepl after reboot + - You can also upload a file called main.py or just work in the webrepl terminal.