️ SPI+DMA+interrupt method (STM32 / MKS UI) (#23464)

This commit is contained in:
Sola
2022-01-16 13:07:37 +08:00
committed by Scott Lahteine
parent 01cb7c19f9
commit a80cafbcfc
8 changed files with 110 additions and 12 deletions

View File

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

View File

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