Using Mozzi library with Micropython #16397
Unanswered
pak-man
asked this question in
Core Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I´d like to integrate (and not port) Mozzi library into Micropython. This is an Arduino library that relies heavily on hardware (timers, interfaces like i2d / spi /i2s).
The code is available here: https://github.com/sensorium/Mozzi
Basically it is a bunch of includes in C and C++ (.h and .hpp)
I´m a bit puzzled how to integrate this library for using with Micropython.
I´d like to:
Mozzi works for some of the platforms that Micropython runs on (at least ESP32)
Obviously wrapper code will be needed for some hardware functions
I´ve read about the C/C++ examples for Micropython, and gave it a try (https://docs.micropython.org/en/latest/develop/cmodules.html#basic-example)
.
But the examples deal with functions that directly hook into Micropython
I don´t understand how I can integrate a such a library. In micropython source in /lib folder there are other C/C++ libraries that are obviously used b micropython (like libffi), but i don´t understand how the integration is done.
I would like that someone explains me which roadmap i should follow, and progress this way.
Beta Was this translation helpful? Give feedback.
All reactions