Micropython 01 start
From artserver wiki
- Board: ESP8266
- [uPython esp8266/quickref http://docs.micropython.org/en/latest/esp8266/quickref.html]
- Flash uPython
- uPython firmware: http://micropython.org/download#esp8266 download latest stable
- install esptool.py to flash the board
pip install esptool
Flash squence:
- connect board to usb
- erase the flash
esptool.py --port /dev/ttyUSB0 erase_flash
- write firmware <code?esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0
- REPL over serial port
stty < /dev/ttyUSB0
speed 115200 baud; line = 0; min = 100; time = 2; -icrnl -imaxbel -opost -onlcr -isig -icanon -echo
- connect to REPL
screen /dev/ttyUSB0 115200
- Ctl-A will exit screen
... more about "Micropython 01 start"