Improve sleep and add button waking
This commit is contained in:
+2
-2
@@ -11,12 +11,12 @@
|
||||
|
||||
// LSM6DS3 wakeup threshold: 1 LSB = 7.8 mg at ±2 g FS (±2g range).
|
||||
#ifndef SLEEP_WAKEUP_THS
|
||||
#define SLEEP_WAKEUP_THS 16 // 0–63
|
||||
#define SLEEP_WAKEUP_THS 6 // 0–63
|
||||
#endif
|
||||
|
||||
// Number of consecutive 26 Hz samples that must exceed the threshold.
|
||||
#ifndef SLEEP_WAKEUP_DUR
|
||||
#define SLEEP_WAKEUP_DUR 2 // 0–3
|
||||
#define SLEEP_WAKEUP_DUR 1 // 0–3
|
||||
#endif
|
||||
|
||||
// GPIO pin connected to LSM6DS3 INT1.
|
||||
|
||||
Reference in New Issue
Block a user