diff --git a/CYD-Klipper/src/core/device/ESP32-2432S028R.cpp b/CYD-Klipper/src/core/device/ESP32-2432S028R.cpp index 65f234f..e8a3f70 100644 --- a/CYD-Klipper/src/core/device/ESP32-2432S028R.cpp +++ b/CYD-Klipper/src/core/device/ESP32-2432S028R.cpp @@ -86,7 +86,6 @@ void screen_setup() tft.setRotation(global_config.rotateScreen ? 3 : 1); tft.fillScreen(TFT_BLACK); set_invert_display(); - set_screen_brightness(); touchscreen_spi.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS); touchscreen.begin(touchscreen_spi); diff --git a/CYD-Klipper/src/core/lv_setup.cpp b/CYD-Klipper/src/core/lv_setup.cpp index 176916b..880af74 100644 --- a/CYD-Klipper/src/core/lv_setup.cpp +++ b/CYD-Klipper/src/core/lv_setup.cpp @@ -253,6 +253,8 @@ void set_color_scheme() void lv_setup() { + set_screen_brightness(); + lv_indev_t * display_driver = lv_indev_get_next(NULL); if (original_touch_driver == NULL) @@ -270,7 +272,6 @@ void lv_setup() screen_timer_setup(); screen_timer_start(); - set_screen_brightness(); lv_png_init(); }