Skip to content

Commit

Permalink
Set screen brightness in lvgl setup
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Mar 3, 2024
1 parent b65003e commit 02e27e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion CYD-Klipper/src/core/device/ESP32-2432S028R.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 2 additions & 1 deletion CYD-Klipper/src/core/lv_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -270,7 +272,6 @@ void lv_setup()

screen_timer_setup();
screen_timer_start();
set_screen_brightness();
lv_png_init();
}

Expand Down

0 comments on commit 02e27e6

Please sign in to comment.