This repository represents a proof-of-concept for consuming the MicroPython project as an ESP-IDF component. This allows users to remove an extensive amount of boilerplate and copy-pasta resulting in much cleaner downstream builds.
This work was inspired by BadgePython and serves as a guide for
the structure of it's v0.2+
release.
- ESP-IDF v4.4+
- git
- CMake 3.12+
Clone the directory and initialize the submodule external/micropython
.
- Via a single command:
git clone --recurse-submodules https://github.com/brianredbeard/mp-test.git
cd mp-test
- In multiple discrete steps
git clone https://github.com/brianredbeard/mp-test.git
cd mp-test
git submodule update --init --recursive
If you just want to build the GENERIC
example which should run on a base ESP32
board, run:
idf.py build
If you wish to define a new board, start by consulting the MicroPython manifest files documentation. In that documentation you will find information on the structure of a "board", high level APIs available, and how to "freeze" specific Python code into your compiled firmware.
Additional references can be found in the MicroPython Boards Source.