How to define I2C pins

I'm using bluno nano v1.4. In user manuel,

  • Microcontroller: Atmega328
  • Bootloader: Arduino Uno
    As you can see, it says I can code it as Uno but their sda, scl pins are different. How can I define SDA, SCL pins in Arduino to use i2c communicaion with a gyro sensor?

You can't. The pins are fixed and attached to the I2C hardware in the chip.

However you might be able to find an "bit banged" I2C Library that might do it. However, for proper I2C you need the pins to be open drain, which is a pin mode not available normally on pins.

2 Likes

They look the same to me.
Why do you say they are different?

Hello feyzac

Welcome to the worldbest Arduino forum ever.

Keep it simple:

Connect a I²C-LCD to the Arduino and run either a I²C-LCD tutorial or a I²C scanner to see what happens.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.