adding library

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
sdellava
Posts: 1
Joined: Fri Feb 23, 2018 9:30 am

adding library

Post by sdellava » Fri Feb 23, 2018 9:35 am

Hallo!

I'm newby so sorry if I'm asking for basic support.

The question is simple: I can't find anywhere in the documentation how to add external library to the firmware.

Tnx for your support.

User avatar
tuupola
Posts: 54
Joined: Sun Sep 17, 2017 12:10 am
Contact:

Re: adding library

Post by tuupola » Sat Feb 24, 2018 6:23 am

Do you want to compile an additional c library to the MicroPython intepreter itself, or do you want to use a third party library written in MicroPython with a MicroPython project?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: adding library

Post by pythoncoder » Sat Feb 24, 2018 7:12 am

Libraries written in MicroPython are in two categories: official libraries from micropython-lib and user-written libraries. Libraries written by users should have their own README file giving installation instructions. If not, you can usually get them to work by simply copying the file to the device.

The README at the above URL gives some information on how to install official libraries using the upip utility.
Peter Hinch
Index to my micropython libraries.

Post Reply