Added DEPG0150BN backlight option

This commit is contained in:
lewishe
2022-10-11 16:59:18 +08:00
parent 35d1e6d74d
commit f46eaa5bd6
2 changed files with 11 additions and 3 deletions

View File

@@ -166,6 +166,10 @@ void setup()
pwIRQ = true;
}, FALLING);
#ifdef LILYGO_WATCH_HAS_BACKLIGHT
twatch->openBL();
#endif
btn->setPressedHandler([]() {
delay(2000);

View File

@@ -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 <LilyGoWatch.h>