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

3 lines
128 B
Python

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