Merge pull request #213 from julio-matarranz/fix/dongle-switch-off
fix #210 implement Switch off screen on Lilygo dongle
This commit is contained in:
commit
abfa17d774
@ -126,6 +126,8 @@ build_flags =
|
|||||||
-DNERMINER_S3_DONGLE
|
-DNERMINER_S3_DONGLE
|
||||||
-DBOARD_HAS_PSRAM
|
-DBOARD_HAS_PSRAM
|
||||||
-DARDUINO_USB_CDC_ON_BOOT
|
-DARDUINO_USB_CDC_ON_BOOT
|
||||||
|
-DTFT_BACKLIGHT_ON=LOW
|
||||||
|
-DTFT_BL=38
|
||||||
lib_deps =
|
lib_deps =
|
||||||
https://github.com/takkaO/OpenFontRender
|
https://github.com/takkaO/OpenFontRender
|
||||||
bblanchon/ArduinoJson@^6.21.2
|
bblanchon/ArduinoJson@^6.21.2
|
||||||
|
@ -103,6 +103,9 @@ void dongleDisplay_Init(void)
|
|||||||
|
|
||||||
void dongleDisplay_AlternateScreenState(void)
|
void dongleDisplay_AlternateScreenState(void)
|
||||||
{
|
{
|
||||||
|
int screen_state = digitalRead(TFT_BL);
|
||||||
|
Serial.println("Switching display state");
|
||||||
|
digitalWrite(TFT_BL, !screen_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dongleDisplay_AlternateRotation(void)
|
void dongleDisplay_AlternateRotation(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user