Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prusnak/micropython-extmod-generator

Generator for Micropython external modules written in C
https://github.com/prusnak/micropython-extmod-generator

Last synced: 12 days ago
JSON representation

Generator for Micropython external modules written in C

Awesome Lists containing this project

README

        

micropython-extmod-generator
============================

Generator for Micropython external modules written in C

Usage
-----

```
extmod-generator [-f] module
```

Program will look for file named `module/module.py` and generate the following files:

* `module/modmodule.c` - external module source code - to be put in `micropython/extmod`
* `module/qstrdefs.h` - needs to be merged manually with `micropython/py/qstrdefs.h`

If a `module` argument is not provided, the default `example` will be used.

Example
-------

[example/example.py](example/example.py) ⇒ [example/modexample.c](example/modexample.c) + [example/qstrdefs.h](example/qstrdefs.h)

License
-------

Licensed under MIT License.