nakujaproject / avionicsv1

0 stars 0 forks source link

Where do you specify the pins #1

Closed rodneyosodo closed 3 years ago

rodneyosodo commented 3 years ago

https://github.com/nakujaproject/avionicsv1/blob/7f05e97300eade009384921e2985c8807d545310/MPU6050/MPU6050-get_reading.ino#L15

oryankibandi commented 3 years ago

The STM32 has it's default I2C pins, so you do not need to specify. I think the wire library already does that.

rodneyosodo commented 3 years ago

There are three sets of I2C pins on the stm32:

So how does it specify?

kimanimichael commented 3 years ago

I used PB6 and PB7 and didn't have to specify them in the code

rodneyosodo commented 3 years ago

Great👍