File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Boards/WaveshareS3TouchLcd128/Source Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ static DeviceVector createDevices() {
1818
1919static bool initBoot () {
2020 // return driver::pwmbacklight::init(GPIO_NUM_2);
21- gpio_set_direction (GPIO_NUM_2, GPIO_MODE_OUTPUT);
21+ gpio_config_t bk_gpio_config = {
22+ .mode = GPIO_MODE_OUTPUT,
23+ .pin_bit_mask = 1ULL << GPIO_NUM_2
24+ };
25+ ESP_ERROR_CHECK (gpio_config (&bk_gpio_config));
2226 gpio_set_level (GPIO_NUM_2, 1 );
2327 return true ;
2428}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ lvgl_port_display_cfg_t Gc9a01Display::getLvglPortDisplayConfig(esp_lcd_panel_io
115115 .buff_dma = true ,
116116 .buff_spiram = false ,
117117 .sw_rotate = false ,
118- .swap_bytes = false ,
118+ .swap_bytes = true ,
119119 .full_refresh = false ,
120120 .direct_mode = false
121121 }
You can’t perform that action at this time.
0 commit comments