ldab / KXTJ3-1057

KXTJ3-1057 Tri-axis Digital Accelerometer - Arduino Library
MIT License
14 stars 8 forks source link

How to do the interrupt? #3

Closed gitvita28 closed 1 year ago

gitvita28 commented 1 year ago

I see this // Detection threshold, movement duration and polarity myIMU.intConf(123, 1, 10, HIGH);

But i don't understand.. how to use the interrupt to wake up the microcontroller?

ssriblo commented 1 year ago

Chip set INT pin HIGH. This pin is connected to MCU pin, so need to attach interrupt to this MCU pin. MCU can sleep and wake up when chip set HIGH level

gitvita28 commented 1 year ago

Hi Leonardo,

Thank you for your answer, but I am not quite understanding. Could you perhaps send an example of the accelerometer interrupt that you've tried that works?

Sincerely appreciated! Minerva

On Thu, Mar 30, 2023 at 2:22 AM Leonardo Bispo @.***> wrote:

Closed #3 https://github.com/ldab/KXTJ3-1057/issues/3 as completed.

— Reply to this email directly, view it on GitHub https://github.com/ldab/KXTJ3-1057/issues/3#event-8883577678, or unsubscribe https://github.com/notifications/unsubscribe-auth/A623KKI4HJZQT3AT3T7IAOLW6UREFANCNFSM6AAAAAAWMUJCKA . You are receiving this because you authored the thread.Message ID: @.***>