From cfa755407c4180cdbfb3c3993e829522d4d06dcc Mon Sep 17 00:00:00 2001 From: lewishe Date: Tue, 8 Aug 2023 12:20:47 +0800 Subject: [PATCH] Example adapt to two screens --- examples/LvglArduinoVNC_VGA/LvglArduinoVNC_VGA.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/LvglArduinoVNC_VGA/LvglArduinoVNC_VGA.ino b/examples/LvglArduinoVNC_VGA/LvglArduinoVNC_VGA.ino index d03ff54..c4f1b0d 100644 --- a/examples/LvglArduinoVNC_VGA/LvglArduinoVNC_VGA.ino +++ b/examples/LvglArduinoVNC_VGA/LvglArduinoVNC_VGA.ino @@ -434,6 +434,9 @@ void setup() // Init touch device touch_init(gfx->width(), gfx->height(), gfx->getRotation()); + // Adapt to two screens, the difference between them is that the colors are reversed, you can annotate them after confirming the screen + gfx->invertDisplay(true); + // Init keyboard device keyboard_init();