From 4c9862e7d5055523da16299a12bf436940aeba39 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Fri, 18 Dec 2020 18:40:26 +0100 Subject: [PATCH] ttgobeam10.h: add blue LED control --- src/hal/ttgobeam10.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/hal/ttgobeam10.h b/src/hal/ttgobeam10.h index b2ff5b45..568fda1a 100644 --- a/src/hal/ttgobeam10.h +++ b/src/hal/ttgobeam10.h @@ -20,7 +20,7 @@ User, long press -> send LORA message Reset -> reset device */ -#define HAS_DISPLAY 1 +//#define HAS_DISPLAY 1 #define MY_DISPLAY_SDA SDA #define MY_DISPLAY_SCL SCL #define MY_DISPLAY_RST NOT_A_PIN @@ -42,6 +42,12 @@ Reset -> reset device // possible values (V): // 4_1/4_15/4_2/4_36 +// blue onboard led settings +// possible values: +// AXP20X_LED_OFF / AXP20X_LED_LOW_LEVEL (means LED ON) / AXP20X_LED_BLINK_1HZ / AXP20X_LED_BLINK_4HZ +#define PMU_LED_RUN_MODE AXP20X_LED_LOW_LEVEL +#define PMU_LED_SLEEP_MODE AXP20X_LED_BLINK_1HZ + // GPS settings #define HAS_GPS 1 // use on board GPS #define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_34, GPIO_NUM_12 // UBlox NEO 6M @@ -49,9 +55,9 @@ Reset -> reset device // enable only if device has these sensors, otherwise comment these lines // BME680 sensor on I2C bus -#define HAS_BME 1 // Enable BME sensors in general -#define HAS_BME680 SDA, SCL -#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !! +//#define HAS_BME 1 // Enable BME sensors in general +//#define HAS_BME680 SDA, SCL +//#define BME680_ADDR BME680_I2C_ADDR_PRIMARY // !! connect SDIO of BME680 to GND !! //#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature