- run this command for check actual tty state.
ls /dev/tty.*
- On some pc with usb-c you could se device like:
ls /dev/cu.*
- Now connect device to USB, rerun the command and check changes in output. We should see like
/dev/tty.SLAB_USBtoUARTor something similar. If not go to this page and download CP210x USB driver.
IMPORTANT! Use only data usb cabel. I and a lot of people on this world spend many many...
time connecting device with wrong cable only for powering.
-
Download MicroPython for our Nodemcu(esp8266) module. You can download it from this page. My latest choice was
esp8266-20191220-v1.12.bin. -
For deploying we will use esptool which can install it using pip:
pip install esptool
- Erase flash.
esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
- Deploy flash.
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --flash_size=detect 0 esp8266-20191220-v1.12.bin
- For created this manual was used this page https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html
- I was inspirated by this page too.https://naucse.python.cz/
