installing new library for MicroPython

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
rain_philosophy
Posts: 1
Joined: Tue Jan 07, 2020 11:46 am

installing new library for MicroPython

Post by rain_philosophy » Tue Jan 07, 2020 11:53 am

Hi, everyone!
I’m trying to start my dynamixel xl-320 servo using esp32. So, I found library for python from GitHub: https://github.com/MultipedRobotics/pyxl320.
I installed micropython kernel to communicate with esp32 in Jupiter notebook.
Now I need to install pyxl320 library to micropython kernel, because new kernel don't have library for usual jupiter notebook kernel.
Now the question, can I do this? Can I install new library to use it via MicroPython kernel? How can I do this?

User avatar
jimmo
Posts: 1188
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: installing new library for MicroPython

Post by jimmo » Mon Feb 03, 2020 5:18 am

hi,

I'm not entirely sure I understand your question because I'm not that familiar with the MicroPython kernel for Jupyter.
rain_philosophy wrote:
Tue Jan 07, 2020 11:53 am
So, I found library for python from GitHub: https://github.com/MultipedRobotics/pyxl320.
But one thing to note is that the library you linked to is written for "regular" Python (i.e. CPython). It won't work on your ESP32 without some modifications. (it uses pyserial to access the serial port).

In general though, if you have a library that will run on MicroPython, then you should be able to install it on your ESP32 in the usual way (i.e. using pyboard.py, rshell, ampy, or webrepl) then access it from Jupyter (using the MicroPython kernel).

Post Reply