From d224c97bde5efea8254de25d78076af801a6169e Mon Sep 17 00:00:00 2001 From: Rene Zeldenthuis Date: Tue, 19 Dec 2023 23:21:56 +0100 Subject: [PATCH] Fixed CDS GPIO --- src/esp32_smartdisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esp32_smartdisplay.c b/src/esp32_smartdisplay.c index fedaba2..7612816 100644 --- a/src/esp32_smartdisplay.c +++ b/src/esp32_smartdisplay.c @@ -95,7 +95,7 @@ void smartdisplay_init() #ifdef BOARD_HAS_CDS // CDS Light sensor - pinMode(LIGHTSENSOR_IN, INPUT); + pinMode(CDS_GPIO, INPUT); analogSetAttenuation(ADC_0db); // 0dB(1.0x) 0~800mV #endif