add deep sleep mode

This commit is contained in:
2025-04-19 16:00:18 +02:00
parent 9abfb936a3
commit e4663df500
4 changed files with 47 additions and 0 deletions

View File

@@ -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