Skip to content

Unreliable on RP2350 #27

@Ultrawipf

Description

@Ultrawipf

After a soft reload this library fails to detect the device on RP2350 chips throwing a device not found exception on the first read access after writing the ctrl reg.
Inserting a 1ms sleep after self._write_u8(_MMA8451_REG_CTRL_REG2, 0x40) seems to fix this issue possibly indicating a timing issue.

This seems like a hacky solution but is currently required for reliable operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions