Skip to content

Commit df179c6

Browse files
finger563Copilot
andauthored
fix(t-deck): fix display driver alias being protected (#546)
* fix(t-deck): fix display driver alias being protected * Update components/t-deck/include/t-deck.hpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 11f2881 commit df179c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/t-deck/include/t-deck.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ class TDeck : public BaseComponent {
6262
/// Alias for the pixel type used by the TDeck display
6363
using Pixel = lv_color16_t;
6464

65+
/// Alias for the display driver used by the TDeck
66+
using DisplayDriver = espp::St7789;
67+
6568
/// Maximum number of bytes that can be transferred in a single SPI
6669
/// transaction to the Display. 32k on the ESP32-S3.
6770
static constexpr size_t SPI_MAX_TRANSFER_BYTES = SPI_LL_DMA_MAX_BIT_LEN / 8;
@@ -513,7 +516,6 @@ class TDeck : public BaseComponent {
513516
static constexpr bool mirror_portrait = true;
514517
static constexpr bool swap_xy = false;
515518
static constexpr gpio_num_t backlight_io = GPIO_NUM_42;
516-
using DisplayDriver = espp::St7789;
517519

518520
// touch
519521
static constexpr bool touch_swap_xy = true;

0 commit comments

Comments
 (0)