Browse Source

🐛 Fix SPI DMA and default mode (#23627)

Followup to #23464
FB4S_WIFI
Mike La Spina 3 years ago
committed by Scott Lahteine
parent
commit
c7b0626b02
  1. 2
      Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp
  2. 3
      Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3_common.h

2
Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp

@ -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);

3
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3_common.h

@ -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)

Loading…
Cancel
Save