d1f3a4592f
sensitivity.
23 lines
711 B
C
23 lines
711 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
|
|
// wakeup reason
|
|
enum Wakeup_reasons{WAKEUP_BY_RESET, WAKEUP_BY_IMU, WAKEUP_BY_KEYPAD};
|
|
extern Wakeup_reasons wakeup_reason;
|
|
|
|
// only called by tft.cpp, needs to know this because tft gets dimmed 2000 ms before going to sleep
|
|
uint32_t get_lastActivityTimestamp();
|
|
|
|
// called from the HAL
|
|
void init_sleep_HAL();
|
|
void init_IMU_HAL();
|
|
void check_activity_HAL();
|
|
void setLastActivityTimestamp_HAL();
|
|
|
|
uint32_t get_sleepTimeout_HAL();
|
|
void set_sleepTimeout_HAL(uint32_t aSleepTimeout);
|
|
bool get_wakeupByIMUEnabled_HAL();
|
|
void set_wakeupByIMUEnabled_HAL(bool aWakeupByIMUEnabled);
|
|
char get_wakeupByIMUthreshold_HAL();
|
|
void set_wakeupByIMUthreshold_HAL(char awakeupByIMUthreshold);
|