From f46eaa5bd6b05fcaefb3bac72f9ddd512a75cce2 Mon Sep 17 00:00:00 2001 From: lewishe Date: Tue, 11 Oct 2022 16:59:18 +0800 Subject: [PATCH] Added DEPG0150BN backlight option --- examples/T-Block/Epaper/Epaper.ino | 4 ++++ examples/T-Block/Epaper/config.h | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/examples/T-Block/Epaper/Epaper.ino b/examples/T-Block/Epaper/Epaper.ino index 3828e16..b151dc6 100644 --- a/examples/T-Block/Epaper/Epaper.ino +++ b/examples/T-Block/Epaper/Epaper.ino @@ -166,6 +166,10 @@ void setup() pwIRQ = true; }, FALLING); +#ifdef LILYGO_WATCH_HAS_BACKLIGHT + twatch->openBL(); +#endif + btn->setPressedHandler([]() { delay(2000); diff --git a/examples/T-Block/Epaper/config.h b/examples/T-Block/Epaper/config.h index 4a8ff1d..d7745b5 100644 --- a/examples/T-Block/Epaper/config.h +++ b/examples/T-Block/Epaper/config.h @@ -1,6 +1,6 @@ // => Hardware select -#define LILYGO_WATCH_BLOCK // To use T-Watch Block , please uncomment this line -// #define LILYGO_WATCH_BLOCK_V1 // To use T-Watch Block V1 , please uncomment this line +// #define LILYGO_WATCH_BLOCK // To use T-Watch Block , please uncomment this line +#define LILYGO_WATCH_BLOCK_V1 // To use T-Watch Block V1 , please uncomment this line //NOT SUPPORT ... // #define LILYGO_WATCH_2020_V1 @@ -9,9 +9,13 @@ //NOT SUPPORT ... // => Function select -#define LILYGO_EINK_DEPG0150BN //Separate ink screen, no backlight, no touch -- Version on sale // #define LILYGO_EINK_GDEP015OC1 //Single electronic paper, no backlight, no touch -- Stop producing + +#define LILYGO_EINK_DEPG0150BN //Separate ink screen, and ink screen with backlight, no touch -- sales version +// #define LILYGO_WATCH_HAS_BACKLIGHT //If there is backlight, please enable this macro definition + + #include