I2C Pin Assignment Not Functioning

@chronic788 ,

Could you please comment i2cScan(i2c); and try. I2c_SetConfigInt for ioScl, ioSda parameters must be called before very first I2c_Open function. I2c pin alternate functionality will be set at very first I2c_Open and will be valid till calling I2c_Deinit. If you want to use different I2c pins of the same channel then call APIs below sequence

  • I2C-Init
  • Set ioScl, ioSda pins through I2c_SetConfigInt
  • I2c_open
  • Access I2C bus
  • I2c_Close
  • I2c-Deinit