Skip to content

Switch to polling setup #1

@bschulz1701

Description

@bschulz1701

Feature:

Change from using fixed delays to using Active Force Mode (see COMMAND register) and polling the device for new data.

Make a function getNewData() which will call for a new data reading, then block until done. Function will return I2C error code normally or -1 if function timed out.

Check documentation if there is a better number, but 1000ms should be plenty for a timeout given the longest reading period is 400ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions