@@ -11,24 +11,25 @@ static constexpr int DC_PIN_NUM = 4;
1111static constexpr std::string_view dev_kit = " ESP32-S3-BOX-3" ;
1212static constexpr gpio_num_t i2c_sda = GPIO_NUM_8;
1313static constexpr gpio_num_t i2c_scl = GPIO_NUM_18;
14- static constexpr bool touch_swap_xy = false ;
15- // static constexpr int clock_speed = 60 * 1000 * 1000;
16- static constexpr int clock_speed = 20 * 1000 * 1000 ;
14+ static constexpr int clock_speed = 60 * 1000 * 1000 ;
1715static constexpr auto spi_num = SPI2_HOST;
1816static constexpr gpio_num_t mosi = GPIO_NUM_6;
1917static constexpr gpio_num_t sclk = GPIO_NUM_7;
2018static constexpr gpio_num_t spics = GPIO_NUM_5;
2119static constexpr gpio_num_t reset = GPIO_NUM_48;
2220static constexpr gpio_num_t dc_pin = (gpio_num_t )DC_PIN_NUM;
2321static constexpr gpio_num_t backlight = GPIO_NUM_47;
24- static constexpr size_t width = 320 ;
25- static constexpr size_t height = 240 ;
26- static constexpr size_t pixel_buffer_size = 16384 ;
27- // static constexpr size_t pixel_buffer_size = width * 50;
22+ static constexpr size_t width = 240 ;
23+ static constexpr size_t height = 320 ;
24+ static constexpr size_t pixel_buffer_size = width * 50 ;
2825static constexpr bool backlight_value = true ;
29- static constexpr bool invert_colors = true ;
30- static constexpr auto rotation = espp::Display::Rotation::LANDSCAPE;
26+ static constexpr bool reset_value = true ;
27+ static constexpr bool invert_colors = false ;
28+ static constexpr auto rotation = espp::Display::Rotation::PORTRAIT_INVERTED;
3129static constexpr bool mirror_x = true ;
3230static constexpr bool mirror_y = true ;
31+ static constexpr bool touch_swap_xy = true ;
32+ static constexpr bool touch_invert_x = true ;
33+ static constexpr bool touch_invert_y = false ;
3334
3435using DisplayDriver = espp::Ili9341;
0 commit comments