Skip to content

Commit dc2cf7a

Browse files
committed
hmmm
1 parent f97736f commit dc2cf7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Boards/WaveshareS3TouchLcd128/Source/WaveshareS3TouchLcd128.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ static DeviceVector createDevices() {
1818

1919
static 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
}

Drivers/GC9A01/Source/Gc9a01Display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)