浏览代码

[2.0.x] Anycubic Trigorilla 14 pins tweak (#11869)

Victor Tseng 6 年前
父节点
当前提交
eeab4141db
共有 1 个文件被更改,包括 13 次插入16 次删除
  1. 13
    16
      Marlin/src/pins/pins_TRIGORILLA_14.h

+ 13
- 16
Marlin/src/pins/pins_TRIGORILLA_14.h 查看文件

28
   #define BOARD_NAME "Anycubic RAMPS 1.4"
28
   #define BOARD_NAME "Anycubic RAMPS 1.4"
29
 #endif
29
 #endif
30
 
30
 
31
-#define IS_RAMPS_EFB
32
-
33
-// FAN0 / D9  - Typically used for the part fan on Anycubic Delta devices
34
-#define FAN_PIN 9
35
-
36
-// FAN1 / D7  - Typically unused, can be allocated as Case Fan
31
+// Remap MOSFET pins to common usages
32
+#if HOTENDS > 1
33
+  #define RAMPS_D9_PIN     45   // EEB, EEF
34
+  #if !TEMP_SENSOR_BED
35
+    #define RAMPS_D8_PIN    9   // EEF
36
+  #endif
37
+#elif TEMP_SENSOR_BED
38
+  #define FAN1_PIN          7   // EFB
39
+#else
40
+  #define FAN2_PIN         44   // EFF
41
+#endif
37
 
42
 
38
-// FAN2 / D44 - Typical Extruder Fan on Anycubic Delta devices
39
-#define FAN2_PIN              44
40
-#define ORIG_E0_AUTO_FAN_PIN  44
43
+// D44 - Typical Extruder Fan on Anycubic Delta devices
44
+#define ORIG_E0_AUTO_FAN_PIN 44
41
 
45
 
42
 #include "pins_RAMPS.h"
46
 #include "pins_RAMPS.h"
43
 
47
 
44
-// TODO 1.4 boards do have an E1 stepper driver. However the pin definitions
45
-// from pins_RAMPS.h are incorrect for this board. e.g., Pin 44 is the Extruder fan.
46
-#undef E1_STEP_PIN
47
-#undef E1_DIR_PIN
48
-#undef E1_ENABLE_PIN
49
-#undef E1_CS_PIN
50
-
51
 //
48
 //
52
 // AnyCubic made the following changes to 1.1.0-RC8
49
 // AnyCubic made the following changes to 1.1.0-RC8
53
 // If these are appropriate for your LCD let us know.
50
 // If these are appropriate for your LCD let us know.

正在加载...
取消
保存