🐛 Fix SPI DMA and default mode (#23627)

Followup to #23464
This commit is contained in:
Mike La Spina 2022-01-26 14:01:22 -06:00 committed by Scott Lahteine
parent 30d1f0ba81
commit c7b0626b02
2 changed files with 3 additions and 2 deletions

View File

@ -270,7 +270,7 @@ void my_disp_flush(lv_disp_drv_t * disp, const lv_area_t * area, lv_color_t * co
uint16_t width = area->x2 - area->x1 + 1,
height = area->y2 - area->y1 + 1;
TERN_(USE_SPI_DMA_TC, disp_drv_p = disp);
disp_drv_p = disp;
SPI_TFT.setWindow((uint16_t)area->x1, (uint16_t)area->y1, width, height);

View File

@ -369,7 +369,8 @@
#endif // HAS_WIRED_LCD
#if HAS_TFT_LVGL_UI
#define USE_SPI_DMA_TC
// Enable SPI DMA, this requires button pins, thus no buttons. Default is DISABLED.
//#define USE_SPI_DMA_TC
#endif
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI, HAS_WIRED_LCD)