2025-03-22 00:49:46 +01:00

5 lines
160 B
Python

from machine import SoftI2C, Pin
i2c=SoftI2C(sda=Pin(20), scl=Pin(21), freq=400000)
scan = i2c.scan()
print(scan)
print(i2c.readfrom_mem(0x76, 0xd0, 1)[0])