Open
Description
Hi Peter;
Just tried to run the portable version as I have both esp8266 and pyboards to calibrate, but on the pyboard it fails as the pyboard I2C does not include readfrom_mem_into:
from ds3231 import DS3231
import pyb
i2c = pyb.I2C(1, pyb.I2C.MASTER)
ds = DS3231(i2c)
ds.rtc_test()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ds3231.py", line 111, in rtc_test
File "ds3231.py", line 97, in await_transition
AttributeError: 'I2C' object has no attribute 'readfrom_mem_into'
I tested this on the pyboard-d-sf2, have not yet tried on the pyboard 1.1.
Metadata
Metadata
Assignees
Labels
No labels
Activity