To set I2C communication parameters, use the I2C options. The pins in the I2C0(default) option are the Arduino® header pins mentioned in https://developer.mbed.org/platforms for the selected Nucleo board.
Use the I2C option to set the bus speed parameter. The bus speed determines the rate of data communication between the peripherals that are connected together by the I2C bus.
Default:100000
An SCL pin for the SCL clock signal that the I2C Master generates.
An SDA pin for SDA data signal.