@@ -19,17 +19,17 @@ static constexpr gpio_num_t spics = GPIO_NUM_5;
1919static constexpr gpio_num_t reset = GPIO_NUM_48;
2020static constexpr gpio_num_t dc_pin = (gpio_num_t )DC_PIN_NUM;
2121static constexpr gpio_num_t backlight = GPIO_NUM_47;
22- static constexpr size_t width = 240 ;
23- static constexpr size_t height = 320 ;
22+ static constexpr size_t width = 320 ;
23+ static constexpr size_t height = 240 ;
2424static constexpr size_t pixel_buffer_size = width * 50 ;
2525static constexpr bool backlight_value = true ;
2626static constexpr bool reset_value = true ;
27- static constexpr bool invert_colors = false ;
28- static constexpr auto rotation = espp::Display::Rotation::PORTRAIT_INVERTED ;
27+ static constexpr bool invert_colors = true ;
28+ static constexpr auto rotation = espp::Display::Rotation::LANDSCAPE ;
2929static constexpr bool mirror_x = true ;
30- static constexpr bool mirror_y = false ;
31- static constexpr bool touch_swap_xy = true ;
32- static constexpr bool touch_invert_x = true ;
30+ static constexpr bool mirror_y = true ;
31+ static constexpr bool touch_swap_xy = false ;
32+ static constexpr bool touch_invert_x = false ;
3333static constexpr bool touch_invert_y = false ;
3434
35- using DisplayDriver = espp::Ili9341 ;
35+ using DisplayDriver = espp::St7789 ;
0 commit comments