Skip to content

Commit

Permalink
🐛 Fix SPI DMA and default mode (MarlinFirmware#23627)
Browse files Browse the repository at this point in the history
  • Loading branch information
descipher authored and Jeremy Fairbanks committed Jul 18, 2022
1 parent 14cb0a9 commit 80fd7d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 2 additions & 1 deletion Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80fd7d7

Please sign in to comment.