浏览代码

Followup to MAX7219 / KILL_PIN patch

Co-Authored-By: Roxy-3D <roxy-3d@users.noreply.github.com>
Scott Lahteine 6 年前
父节点
当前提交
a9c5d524bb
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h

+ 3
- 4
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h 查看文件

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

正在加载...
取消
保存