m5stack / M5StickC

M5StickC Arduino Library
MIT License
476 stars 221 forks source link

enable wake-on-motion (WOM) for MPU6886 #122

Closed standarddeviant closed 4 years ago

standarddeviant commented 4 years ago

This adds a feature where the MPU6886 is able to wake the ESP32 core from deep-sleep when it detects motion. This should close issue #119 .

There is interest, per #119 , in having a more unified interrupt scheme between AXP, RTC, and IMU - the three devices with wired interrupt connections to GPIO35. This PR does not address that interest, but does enable wake-on-motion with the supplied example. The current MPU6886 interrupt configuration is "active-low" and "push-pull".

EeeeBin commented 4 years ago

Thank you :)