8000 Wake on Significant Motion · Issue #48 · adafruit/Adafruit_CircuitPython_LSM6DS · GitHub
[go: up one dir, main page]

Skip to content
Wake on Significant Motion #48
Open
@scath999

Description

@scath999

Wondering how I can configure this device to fire an interrupt on significant motion, per page 45 of the datasheet (here)?

The goal is to be able to set an alarm in CPy to wake when pin D3 is set high - according to the schematics for the Feather Sense (which I'm developing on), this is the GPIO connected with INT1 on the LSM6DS33.

Something like

pin_alarm = alarm.pin.PinAlarm(pin=board.D3, value=True, pull=True)
alarm.light_sleep_until_alarms(pin_alarm)

The datasheet seems to indicate that setting register 0x0D on the device to 64 (bin 01000000) will accomplish this.

Thoughts?

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

      0