Skip to content

Commit

Permalink
Fixed CDS GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Dec 19, 2023
1 parent 7773b5e commit d224c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esp32_smartdisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d224c97

Please sign in to comment.