add deep sleep mode
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#ifndef ENV
|
||||
#define ENV
|
||||
#include <Arduino.h>
|
||||
#include "driver/rtc_io.h"
|
||||
|
||||
#include <BLEDevice.h>
|
||||
#include <BLEUtils.h>
|
||||
#include <BLEScan.h>
|
||||
@@ -9,6 +12,11 @@
|
||||
#include <Adafruit_GFX.h>
|
||||
#include <Fonts/FreeSans9pt7b.h>
|
||||
|
||||
/********************* General ****************************/
|
||||
#define BUTTON_PIN_BITMASK(GPIO) (1ULL << GPIO)
|
||||
#define WAKEUP_GPIO GPIO_NUM_1
|
||||
#define SLEEP_GPIO 1
|
||||
|
||||
/********************* NAU7802 ****************************/
|
||||
|
||||
#define LDO NAU7802_3V3
|
||||
|
||||
Reference in New Issue
Block a user