Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| projects:internetofthings:micropython [2018/10/13 12:24] – [esp8266] scipio | projects:internetofthings:micropython [2018/11/03 08:46] (current) – [led] scipio | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== esp32 ===== | ===== esp32 ===== | ||
| + | |||
| + | Download firmware from http:// | ||
| + | |||
| + | erase flash (before any micropython deploy) | ||
| + | < | ||
| + | export PORT=/ | ||
| + | esptool.py --chip esp32 --port $PORT erase_flash | ||
| + | </ | ||
| + | |||
| + | write firmware | ||
| + | < | ||
| + | esptool.py --chip esp32 --port $PORT write_flash -z 0x1000 esp32-20181103-v1.9.4-683-gd94aa577a.bin | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== old ==== | ||
| Based on [[https:// | Based on [[https:// | ||
| Line 31: | Line 47: | ||
| </ | </ | ||
| - | ==== old ==== | + | |
| * download micropython from http:// | * download micropython from http:// | ||
| Line 55: | Line 71: | ||
| #esptool --port / | #esptool --port / | ||
| esptool --port / | esptool --port / | ||
| + | |||
| + | # oppure | ||
| + | esptool --port / | ||
| </ | </ | ||
| + | |||
| + | after press buttons !!!! | ||
| access from serial over USB | access from serial over USB | ||
| Line 94: | Line 115: | ||
| # GPIO16 (D0) is the internal LED for NodeMCU | # GPIO16 (D0) is the internal LED for NodeMCU | ||
| + | # PIN 22 fro TTGO MINI32 | ||
| led = Pin(16, Pin.OUT) | led = Pin(16, Pin.OUT) | ||