I'm using Thonny to just do a very simple test (MicroPython v1.13-290-g556ae7914 on 2021-01-21; Raspberry Pi Pico with RP2040).
Code: Select all
from machine import I2C, Pin
i2c = I2C(1, sda=Pin(6), scl=Pin(7))
buf = i2c.readfrom_mem(0x68, 0, 7)
print(buf)
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
OSError: 5
I'm using
Code: Select all
https://github.com/mcauser/micropython-tinyrtc-i2c/blob/master/ds1307.py
Any ideas why I'm getting the error?
Frank