LilyGo T-Display (#406)

+ expose lvglSwapBytes setting for the St7789Display driver.
+ updated all relevant boards accordingly.
This commit is contained in:
Shadowtrance
2025-11-03 01:56:03 +10:00
committed by GitHub
parent ab2aa2c4d4
commit 0d8c0a37cc
20 changed files with 193 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ std::shared_ptr<EspLcdConfiguration> St7789Display::createEspLcdConfiguration(co
.backlightDutyFunction = configuration.backlightDutyFunction,
.resetPin = configuration.resetPin,
.lvglColorFormat = LV_COLOR_FORMAT_RGB565,
.lvglSwapBytes = false,
.lvglSwapBytes = configuration.lvglSwapBytes,
.rgbElementOrder = configuration.rgbElementOrder,
.bitsPerPixel = 16,
});
+1
View File
@@ -26,6 +26,7 @@ public:
std::shared_ptr<tt::hal::touch::TouchDevice> touch;
std::function<void(uint8_t)> _Nullable backlightDutyFunction;
gpio_num_t resetPin;
bool lvglSwapBytes;
lcd_rgb_element_order_t rgbElementOrder = LCD_RGB_ELEMENT_ORDER_RGB;
};