nakujaproject / avionicsv1

0 stars 0 forks source link

Where do you specify pin? #2

Closed rodneyosodo closed 3 years ago

rodneyosodo commented 3 years ago

https://github.com/nakujaproject/avionicsv1/blob/7f05e97300eade009384921e2985c8807d545310/BMP180/code/BMP180.ino#L5

kimanimichael commented 3 years ago

You don't need to. It uses i2c communication. Most boards have default SDA and SCL pins. You should use these pins

rodneyosodo commented 3 years ago

If it has more than one i2c enabled pins?

kimanimichael commented 3 years ago

I used PB6 and PB7 and didn't have to specify them in the code. There's a way to specify the i2c pins. I'll research and notify you.