RoboRally/micropython_firmware/setup_notes.txt

32 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-04-12 17:18:00 +00:00
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
2019-04-13 12:26:12 +00:00
Connect to local wifi:
2019-04-12 17:18:00 +00:00
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
>>> sta_if.connect("<SSID>", "<PW>")
2019-04-13 12:26:12 +00:00
>>> sta_if.ifconfig() # this prints the IP
Use access point to connect:
>>> import network
>>> ap_if = network.WLAN(network.AP_IF)
>>> ap_if.active(True)
>>> ap_if.ifconfig() # this prints the IP
Default passwort for the access point: micropythoN
2019-04-12 17:18:00 +00:00
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.