Browse Source

🧑‍💻 Move PB0 init for MKS_ROBIN_NANO

vanilla_fb_2.0.x^2
Scott Lahteine 3 years ago
parent
commit
0470fbe0a1
  1. 4
      Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp
  2. 4
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h
  3. 17
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_common.h

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

@ -127,10 +127,6 @@ void tft_lvgl_init() {
watchdog_refresh(); // LVGL init takes time
#if MB(MKS_ROBIN_NANO)
OUT_WRITE(PB0, LOW); // HE1
#endif
// Init TFT first!
SPI_TFT.spi_init(SPI_FULL_SPEED);
SPI_TFT.LCD_init();

4
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h

@ -45,3 +45,7 @@
//#define LED_PIN PB2
#include "pins_MKS_ROBIN_NANO_common.h"
#if HAS_TFT_LVGL_UI && FAN1_PIN != PB0 && HEATER_1_PIN != PB0
#define BOARD_INIT OUT_WRITE(PB0, LOW)
#endif

17
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_common.h

@ -98,15 +98,6 @@
#ifndef HEATER_0_PIN
#define HEATER_0_PIN PC3
#endif
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
#ifndef FAN1_PIN
#define FAN1_PIN PB0
#endif
#else
#ifndef HEATER_1_PIN
#define HEATER_1_PIN PB0
#endif
#endif
#ifndef FAN_PIN
#define FAN_PIN PB1 // FAN
#endif
@ -114,6 +105,14 @@
#define HEATER_BED_PIN PA0
#endif
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
#ifndef FAN1_PIN
#define FAN1_PIN PB0
#endif
#elif !defined(HEATER_1_PIN)
#define HEATER_1_PIN PB0
#endif
//
// Power Supply Control
//

Loading…
Cancel
Save