Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.15 KB

ESP8266.md

File metadata and controls

27 lines (21 loc) · 1.15 KB

Using MicroPython

Prerequisites

  • For Windows must install CP210x USB to UART Bridge

flash the micropython

  1. Download the latest Micropython Firmware: https://micropython.org/download/#esp8266
  2. For easy flash install Thonny IDE.
  3. Open Thonny IDE Tools > Interpreter.
  4. Choose the MicroPython ESP8266 as interpreter.
  5. Choose port that your ESP8266 connected to.
  6. Click Install or update firmware at the bottom right.
  7. Choose port that your ESP8266 connected to.
  8. Browse the firmware that you download.
  9. Click install. if its error, check your thonny IDE if its access sudo/administrator privilege.

Testing the MicroPython

  1. Open Thonny IDE make sure the intrepreter is Micropython ESP8266.
  2. Create new file named main.py and write a simple python print hello world code.
  3. Save it choose on MicroPython Device.
  4. And run the script on Thonny IDE. We will see the hello world is displayed on terminal thats mean the MicroPython is successfully installed.

MQTT

Installing MQTT Client