Black STM32F407VE6 : How to use the C libraries of a sensor ?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
JacquesC
Posts: 4
Joined: Sun Feb 17, 2019 5:04 am

Black STM32F407VE6 : How to use the C libraries of a sensor ?

Post by JacquesC » Fri Feb 22, 2019 8:25 pm

Hello,
I have to use sensors in I2C and others for which I have only libraries in C ++ (arduino).
I know how to use them in C but I have to find a way to use them with micropython for my students.
I thought I saw that it was possible to call libraries in C would there be a tutorial somewhere?
Thank you
See you

User avatar
Roberthh
Posts: 1572
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Black STM32F407VE6 : How to use the C libraries of a sensor ?

Post by Roberthh » Fri Feb 22, 2019 8:30 pm

If the sensors are common ones , there is a good chance that you will find Python drivers in the web. There are a lot made for RasPi and a lot published by adafruit. Both can easily by adapted for Micropyhton. typically, only the I2C part has to be changed.

User avatar
mcauser
Posts: 400
Joined: Mon Jun 15, 2015 8:03 am

Re: Black STM32F407VE6 : How to use the C libraries of a sensor ?

Post by mcauser » Wed Jul 17, 2019 7:34 am

Which I2C sensors are you hoping to use?

Post Reply