- Adding Python code by Pull Request
microPythonEasy IoT firmware for W5100S-EVB-Pico, Pico-W, ESP32-WROOM and ESP32-WROVER (with SPIRAM)
Based on MicroPython this project tries to mimic the magnificent ESPEasy project functions. Python code is heavily based on RPIEasy, partially rewritten from mPyEasy dropping threading and implementing AsyncIO with a very basic Web framework with minimal memory footprint. Main goal is to create a multisensor device, that can be install and setup quickly.
Expect major changes in later versions that may cause incompatibility with earlier versions!
1/ Recommended method to write the firmware binary to the flash directly. It will run on either WROOM or WROVER variants.
Download image from: https://github.com/enesbcs/mpyeasy-async/releases/
-
Erase flash at first time on ESP32:
esptool.py --port /dev/ttyUSB0 erase_flash
-
Write firmware:
esptool.py --port /dev/ttyUSB0 write_flash -z 0x1000 firmware.bin
Or you can simply use Thonny to install firmware!
2/ MicroPython source code from the src directory can be copied to the flash onto a WROVER module with 4MB PSRAM! Without PSRAM it may run out of memory, i warned you!
https://github.com/enesbcs/mpyeasy-async/tree/main/src
- Download image from: https://github.com/enesbcs/mpyeasy-async/releases/
- Press the Bootsel button on Pico when connecting to USB, it will open a new Drive.
- Copy the .uf2 image to this drive (suitable for your device)
- Connect to mpyEasy WIFI AP with configesp password.
- Setup your own wifi data at https://192.168.4.1/config
- Search it on your own network and configure at the obtained dhcp IP with a web browser.
- Connect to a router with LAN cable, it will request a DHCP address
- Search it on your own network and configure at the obtained dhcp IP with a web browser.
OTA is not supported yet on ESP32, and never will be on RP2
To create firmware image from python sources, follow instructions for compiling standard MicroPython and add mPyEasy source to micropython/ports/esp32/modules subdirectory before "make" command.
https://github.com/micropython/micropython/tree/master/ports/esp32