2020-02-21 17:01:26 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-02-22 12:01:59 -08:00
|
|
|
#include "Arduino.h"
|
|
|
|
|
|
2020-02-21 17:01:26 -08:00
|
|
|
void doDeepSleep(uint64_t msecToWake);
|
|
|
|
|
void doLightSleep(uint64_t msecToWake);
|
|
|
|
|
void setBluetoothEnable(bool on);
|
2020-02-22 13:14:10 -08:00
|
|
|
void setGPSPower(bool on);
|
2020-02-21 17:01:26 -08: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;
|