← index #3427PR #990
Off-topic · high · value 6.820
QUERY · ISSUE

SmartConfig ESP8266 and ESP32

openby zaforicopened 2017-11-08updated 2024-10-31
enhancementport-esp8266port-esp32

Add smartconfig capability to micropython for esp8266 and esp32

Add the following to modesp.c
{ MP_ROM_QSTR(MP_QSTR_smartconfig), MP_ROM_PTR(&mp_module_esp_smartconfig) },

Create smartconfig python wrapper. An old example is at https://github.com/mianos/micropython/blob/master/esp8266/mod_esp_smartconfig.c

CANDIDATE · PULL REQUEST

ESP8266 port

mergedby dpgeorgeopened 2014-11-27updated 2014-11-28

This adds support for ESP8266 as a target port for Micro Python. Ie, Micro Python runs directly on the ESP8266 chip. Currently no board-specific features are implemented, only REPL and core uPy modules.

At the moment there is only 19k of heap RAM available for uPy. This is because of 32k bss (need to investigate why...) and 28k rodata (can rodata go elsewhere?).

Garbage collection and exceptions seem to work.

Build using @pfalcon's open sdk: https://github.com/pfalcon/esp-open-sdk . Need to have xtensa-gcc in your path, and then do something like:

$ ESP_SDK=~/esp-open-sdk/sdk make

Binary image available at http://micropython.org/resources/upy.img

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied