⚡️ SPI+DMA+interrupt method (STM32 / MKS UI) (#23464)
This commit is contained in:
@ -44,6 +44,10 @@
|
||||
|
||||
//#define LED_PIN PB2
|
||||
|
||||
#if HAS_TFT_LVGL_UI
|
||||
#define BOARD_INIT OUT_WRITE(PB0, LOW)
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_ROBIN_NANO_common.h"
|
||||
|
||||
#if HAS_TFT_LVGL_UI && FAN1_PIN != PB0 && HEATER_1_PIN != PB0
|
||||
|
@ -366,9 +366,15 @@
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if HAS_TFT_LVGL_UI
|
||||
#define USE_SPI_DMA_TC
|
||||
#endif
|
||||
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI, HAS_WIRED_LCD)
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#if DISABLED(USE_SPI_DMA_TC)
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user