2020-02-22 01:01:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-02-22 20:01:59 +00:00
|
|
|
#include "Arduino.h"
|
|
|
|
|
2020-02-22 01:01:26 +00:00
|
|
|
void doDeepSleep(uint64_t msecToWake);
|
|
|
|
void doLightSleep(uint64_t msecToWake);
|
|
|
|
void setBluetoothEnable(bool on);
|
2020-02-22 21:14:10 +00:00
|
|
|
void setGPSPower(bool on);
|
2020-02-22 01:01:26 +00:00
|
|
|
|
|
|
|
// Perform power on init that we do on each wake from deep sleep
|
|
|
|
void initDeepSleep();
|
|
|
|
|
|
|
|
void setCPUFast(bool on);
|
|
|
|
void setLed(bool ledOn);
|
|
|
|
|
|
|
|
extern int bootCount;
|
|
|
|
extern esp_sleep_source_t wakeCause;
|
|
|
|
|
|
|
|
// is bluetooth sw currently running?
|
|
|
|
extern bool bluetoothOn;
|