Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prusnak/micropython-extmod-generator
Generator for Micropython external modules written in C
https://github.com/prusnak/micropython-extmod-generator
Last synced: 6 days ago
JSON representation
Generator for Micropython external modules written in C
- Host: GitHub
- URL: https://github.com/prusnak/micropython-extmod-generator
- Owner: prusnak
- License: mit
- Created: 2016-03-02T16:54:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T00:34:53.000Z (about 2 years ago)
- Last Synced: 2024-11-30T13:59:42.380Z (12 days ago)
- Language: Python
- Size: 44.9 KB
- Stars: 21
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-extmod-generator - Generator for MicroPython external modules written in C. (Development / Code Generation)
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.