Skip to content

Put back pedometer_steps #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

caternuson
Copy link

Possible fix for #21

Simply puts back the class level ROUnaryStruct register for steps. Looks like this was accidentally removed during a refactor in #16. Since that PR seems to be related to conserving memory, not sure if this is the desired solution. But it checks out:

Adafruit CircuitPython 5.3.1 on 2020-07-13; Adafruit CLUE nRF52840 Express with nRF52840
>>> import board
>>> from adafruit_lsm6ds import LSM6DS33
>>> sensor = LSM6DS33(board.I2C())
>>> sensor.pedometer_enable = True
>>> sensor.pedometer_steps
0
>>> sensor.pedometer_steps
10
>>> 

@caternuson caternuson requested a review from siddacious July 30, 2020 15:31
@siddacious
Copy link
Contributor

Thanks @caternuson, however I noticed this and there is a fix in #20 . I'll work on getting it merged

@siddacious siddacious closed this Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants