Skip to content

DS3231 Portable Pyboard readfrom_mem_into #9

Open
@pacmac

Description

@pacmac

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions