From c7590c652a291fa5920b16c92e17072f3d9a282c Mon Sep 17 00:00:00 2001 From: Karsten Fleischer Date: Tue, 5 Nov 2024 17:44:29 +0100 Subject: [PATCH] ST7787 init: change mode of TFT_BL before writing --- TFT_Drivers/ST7789_Init.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT_Drivers/ST7789_Init.h b/TFT_Drivers/ST7789_Init.h index b2ed7ebf..9ac66a68 100644 --- a/TFT_Drivers/ST7789_Init.h +++ b/TFT_Drivers/ST7789_Init.h @@ -124,8 +124,8 @@ #ifdef TFT_BL // Turn on the back-light LED - digitalWrite(TFT_BL, HIGH); pinMode(TFT_BL, OUTPUT); + digitalWrite(TFT_BL, HIGH); #endif } @@ -231,8 +231,8 @@ #ifdef TFT_BL // Turn on the back-light LED - digitalWrite(TFT_BL, HIGH); pinMode(TFT_BL, OUTPUT); + digitalWrite(TFT_BL, HIGH); #endif } #endif \ No newline at end of file