SrcCodes

Example: Remotely switch on/off and control brightness of an LED using MicroPython WebREPL

So far, we have flashed MicroPython firmware onto an ESP8266 and setup WebREPL to run programs over WIFI on the chip. Now it's time for a hands-on excercise. We'll remotely switch on/off and control brightness of an LED using MicroPython WebREPL.

How to setup WebREPL to connect to Python prompt (REPL) of ESP8266 over WIFI network?

WebREPL daemon auto-start is disabled by default in MycroPython on ESP8266 for security reason. Here, we'll enable the same, connect to the REPL over WIFI using locally installed WebREPL client and run a "Hello World" program remotely on the chip.

How to flash MicroPython firmware onto an ESP8266 ESP-12E chip using esptool?

By default, ESP8226 module comes with AT Firmware. In this post, we'll see how to flash MicroPython firmware onto an ESP8266 ESP-12E chip using esptool. Tools,Technologies and Components used in this article 1. ESPlorer IDE 2. MicroPython 3. macOS Sierra 4. Components: * ESP8266 ESP-12E * USB To TTL converter UART

SrcCodes © 2026