Hello,
I use a STM32F103C8T6 and I wanted to put the test program for Arduino.
can you tell me how to convert this program to run with the STM?
thank you
here is the link of the program:
This hardware package will add support for the STM32F103C8T6 in the Arduino IDE:
After installing, select Tools > Board > Generic STM32F103C series and then Tools > Variant > STM32F103C8 (20k RAM, 64k Flash).
After that, install the I2Cdev and MPU6050 libraries from the link provided in the tutorial you're following (let me know if you need help with installing the libraries). Now, try compiling the sketch provided at the link. The goal with Arduino is to provide a compatible interface that can be used with any supported microcontroller. Ideally, a sketch written for an Uno will also work on an STM32F103C8T6. The reality is that sometimes there are differences that make complete intercompatibility impossible and you need to do some work to port code from one platform to another.