0

Ports of Circuitpython libs to Micropython?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Ports of Circuitpython libs to Micropython?

by leonardd on Wed Sep 02, 2020 12:10 pm

Love my TinyPICO and HUZZAH32 both running micropython but was wondering if any ports have been made of some of the circuitpython Libraries such as the ones in the bundle?
Lots of great devices in that library that I would like to play with.
leonardd
 
Posts: 1
Joined: Tue Aug 21, 2012 11:55 am

Re: Ports of Circuitpython libs to Micropython?

by smccamy1 on Wed Sep 02, 2020 1:19 pm

There are some out there for sure but I don't know of an good list or anything. I was in the same boat, bought a TinyPICO, and wanted to use some things that there were existing CircuitPython libraries for. It was not that bad to port the them at all and I learned a lot. In my case it was just replacing the CircuitPython SPI and Board library parts with MP and ESP32 compatible code. If you find something particular you want I am am happy to help out and at least try and point you in the right direction.

smccamy1
 
Posts: 21
Joined: Tue May 17, 2016 8:57 pm

Re: Ports of Circuitpython libs to Micropython?

by tannewt on Wed Sep 02, 2020 2:16 pm

Another approach is to use Blinka. It was originally created to provide CircuitPython APIs on top of MicroPython. I don't think it gets much use though so it may be broken.

tannewt
 
Posts: 2043
Joined: Thu Oct 06, 2016 8:48 pm

Re: Ports of Circuitpython libs to Micropython?

by manuvian on Wed Sep 30, 2020 7:27 pm

Is there any way to quick port
https://github.com/adafruit/Adafruit_Ci ... hon_LSM6DS
to tinypico?

I was just getting micropython up and running but talking with Seon (creator of tinypico) he says circuit python can't run on tinypico.

I tried installing adafruit-blinka using upip() but that failed. Is adafruit-blinka able to run on tinypico?

manuvian
 
Posts: 8
Joined: Wed Sep 30, 2020 7:24 pm

Please be positive and constructive with your questions and comments.