Page 1 of 1

installing new library for MicroPython

Posted: Tue Jan 07, 2020 11:53 am
by rain_philosophy
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?

Re: installing new library for MicroPython

Posted: Mon Feb 03, 2020 5:18 am
by jimmo
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).