https://github.com/microbit-foundation/micropython-cpp-module-example
A template to create a MicroPython for micro:bit V2 C/C++ module
https://github.com/microbit-foundation/micropython-cpp-module-example
Last synced: 2 months ago
JSON representation
A template to create a MicroPython for micro:bit V2 C/C++ module
- Host: GitHub
- URL: https://github.com/microbit-foundation/micropython-cpp-module-example
- Owner: microbit-foundation
- License: mit
- Created: 2024-05-07T18:37:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T17:21:11.000Z (about 2 years ago)
- Last Synced: 2026-01-01T14:35:50.828Z (6 months ago)
- Language: C
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# micropython-module-example
A template to create a MicroPython for micro:bit V2 C/C++ module
## Build instructions
Clone this repository, initialise the git submodules and build MicroPython's
mpy-cross:
```
git submodule update --init
git -C micropython-microbit-v2 submodule update --init
make -C micropython-microbit-v2/lib/micropython/mpy-cross
```
Build MicroPython with the C++ module included:
```
make -C micropython-microbit-v2/src USER_C_MODULES=../../..
```
Hex file: `micropython-microbit-v2/src/build/MICROBIT.hex`