This collection of espnow-enabled micropython images is no longer supported or necessary. ESPNow support has been available in production micropython images since the v1.21.0 release.
Please obtain ESPNow enabled micropython images from https://micropython.org/download?port=esp32.
A collection of pre-compiled, pre-v1.21.0 micropython images (including espnow support) for the esp32 and esp8266.
These are provided as a convenience for users until the ESPNow code is accepted into a Micropython release.
These images are compiled from the **espnow-g20*** branches at https://github.com/glenn20/micropython.
The Pull Request for ESPNow support is available at: https://github.com/micropython/micropython/pull/6515.
Documentation for the ESPNow module can be browsed at: https://micropython-glenn20.readthedocs.io/en/latest/library/espnow.html.
General micropython documentation at: https://docs.micropython.org/en/latest/reference/index.html.
Each folder contains the following firmware images:
firmware-esp32-GENERIC.bin
: For the ESP32 GENERIC build target.firmware-esp8266-GENERIC_1M.bin
: For the ESP8266 GENERIC_1M build target
(1MB RAM devices)firmware-esp8266-GENERIC.bin
: For the ESP8266 GENERIC build target (2+MB
RAM devices)These images are built following the instructions at https://github.com/micropython/micropython/blob/master/ports/esp32/README.md and https://github.com/micropython/micropython/blob/master/ports/esp8266/README.md.
Images can be written to the ESP32 and ESP8266 devices over usb using esptool.py (install using pip), eg, one of:
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=4MB --flash_mode=qio 0 firmware-esp8266-GENERIC_1M.bin
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 firmware-esp32-GENERIC.bin
esptool.py --chip esp32s2 --port /dev/ttyACM0 write_flash -z 0x1000 firmware-esp32-GENERIC_S2.bin
espnow
module docs):
timeout
config option to timeout_ms
:config(timeout=xx)
-> config(timeout_ms=xx)
timeout_ms < 0
: disable timeout on wait for messages.ESPNow.on_recv()
to ESPNow.irq()
:ESPNow.irq()
:
irq(callback[, arg])
-> irq(callback)
espnow.ETH_ALEN
to espnow.ADDR_LEN
.GENERIC UM_TINYS2 UM_TINYS3 UM_FEATHERS2 UM_FEATHERS3 GENERIC_S2 GENERIC_S3
GENERIC GENERIC_1M
micropython.mem_info()
was only showing ~64k RAM, this should be
fixed2021113_espnow-g20-v1.17-142-gbb9aac55a:
Branch espnow-g20-dev applied against Micropython master (ff4f1f3a) on 13 November 2021.
Includes builds for all of the new esp32 S2/S3/C3 targets. Warning - most of these builds are untested.