ESP32 Thing Plus i2c stopped working

Hi

I own two of these devices.

I use the Qwiic interface extensively and have a bee sensor and oled display that I connect to these devices.

Recently both of them have started giving issues with qwick interface.

Running the following MicroPython code shows no i2c devices:

i2c = machine.I2C(sda=machine.Pin(23), scl=machine.Pin(22))

devices = i2c.scan()

if len(devices) == 0:

print(“No i2c device !”)

else:

print(‘i2c devices found:’,len(devices))

for device in devices:

print("Decimal address: “,device,” | Hexa address: ",hex(device))

MPY: soft reboot

Scan i2c bus…

Setting i2c…

No i2c device !

MicroPython v1.12-623-gf743bd3d2 on 2020-07-11; ESP32 module (spiram) with ESP32

I know the solution would be to just go and buy another board, but is there a way of resetting the i2c on these boards?

Or what could be causing this?

do you have multiple i2c pullup resistors interfering with each other? That would be my first check. Do they work independently when the other is unplugged?

Check this post. You may be using the wrong pin in your code:

viewtopic.php?f=97&t=52264