From a9c5d524bbac45d6386466da410634147c36cfd3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 5 Aug 2019 21:35:58 -0500 Subject: [PATCH] Followup to MAX7219 / KILL_PIN patch Co-Authored-By: Roxy-3D --- Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h b/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h index 2e930cce3..325076b21 100644 --- a/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h +++ b/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h @@ -182,10 +182,9 @@ #define BTN_ENC 35 #define SD_DETECT_PIN 49 - #ifndef MAX7219_DEBUG // Formbot T-Rex's are low on extra pins. We steal the Kill - #ifndef KILL_PIN // pin to provide a Clock signal for the Max7219's - #define KILL_PIN 41 - #endif + // Allow MAX7219 to steal the KILL pin + #if !defined(KILL_PIN) && MAX7219_CLK_PIN != 41 && MAX7219_DIN_PIN != 41 && MAX7219_LOAD_PIN != 41 + #define KILL_PIN 41 #endif #define LCD_PINS_RS 16