3 lines
128 B
Python
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]) |