Browse Source

Followup to MAX7219 / KILL_PIN patch

Co-Authored-By: Roxy-3D <roxy-3d@users.noreply.github.com>
Scott Lahteine 6 years ago
parent
commit
a9c5d524bb
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h

+ 3
- 4
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h View File

@@ -182,10 +182,9 @@
182 182
   #define BTN_ENC          35
183 183
   #define SD_DETECT_PIN    49
184 184
 
185
-  #ifndef MAX7219_DEBUG          // Formbot T-Rex's are low on extra pins.  We steal the Kill
186
-    #ifndef KILL_PIN             // pin to provide a Clock signal for the Max7219's
187
-      #define KILL_PIN       41
188
-    #endif
185
+  // Allow MAX7219 to steal the KILL pin
186
+  #if !defined(KILL_PIN) && MAX7219_CLK_PIN != 41 && MAX7219_DIN_PIN != 41 && MAX7219_LOAD_PIN != 41
187
+    #define KILL_PIN       41
189 188
   #endif
190 189
 
191 190
   #define LCD_PINS_RS      16

Loading…
Cancel
Save