can you have i2c bus and use microcontroller's dio pins same time?

can you have i2c bus and use microcontroller’s dio pins same time for different purposes?

thanks

Only if you are using different DIO/ADC pins for the different functions. That is, you can’t use the same pin for both functions.

1 Like

Makes sense. That would be my approach. I2C would be on the data(SDA) and clock(SCL) lines. Separate I/O would be carried out on the other available DIO pins.