From 39ecda7625537dce502ef5bc2a3e29ab9580aea7 Mon Sep 17 00:00:00 2001 From: poky Date: Fri, 22 Nov 2019 16:36:25 +0800 Subject: [PATCH] Add backlight LED pin output support --- TFT_Drivers/ST7735_Init.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TFT_Drivers/ST7735_Init.h b/TFT_Drivers/ST7735_Init.h index a528785..635d040 100644 --- a/TFT_Drivers/ST7735_Init.h +++ b/TFT_Drivers/ST7735_Init.h @@ -197,4 +197,9 @@ } commandList(Rcmd3); } + #ifdef TFT_BL + // Turn on the back-light LED + digitalWrite(TFT_BL, HIGH); + pinMode(TFT_BL, OUTPUT); + #endif }