I intend to use uModbus library for a project. I have implemented uModbus on micropython. Now I’m migrating to Zerynth because of memory constraints(in micropython).
I’m new to Zerynth. Is there any guide to add python libraries into the studio?
the desired package can be found here https://pypi.org/project/uModbus/
Unfortunately, Zerynth uses modified version of python to suit the micro-controllers restrictions.
So a custom library might or might not work depending on the functions used in the library.
In general, you can add any python file in the project folder in Zerynth IDE and import your file in your code, and use it.
great to hear that you would like to port your modbus library to Zerynth!
While developing you can put the library in your project or under USER_HOME/zerynth2/dist/r2.1.2/libs/official and import it like you would do with other libraries, there are plenty of examples, but let me know if you need something more.
When you are done developing there is an easy process for publishing your library as a community one:
Let me know
Thank you for the encouragement. The project is in development phase and I’ll need help on my way to publish a library. I’ll let you know if I get any difficulties.