瀏覽代碼

Split TRIGORILLA into 1.3 and 1.4

Scott Lahteine 6 年之前
父節點
當前提交
2be5fe5ddf
共有 4 個檔案被更改,包括 49 行新增14 行删除
  1. 1
    0
      Marlin/src/core/boards.h
  2. 4
    2
      Marlin/src/pins/pins.h
  3. 4
    12
      Marlin/src/pins/pins_TRIGORILLA_13.h
  4. 40
    0
      Marlin/src/pins/pins_TRIGORILLA_14.h

+ 1
- 0
Marlin/src/core/boards.h 查看文件

@@ -77,6 +77,7 @@
77 77
 #define BOARD_BQ_ZUM_MEGA_3D    503   // bq ZUM Mega 3D
78 78
 #define BOARD_MAKEBOARD_MINI    431   // MakeBoard Mini v2.1.2 is a control board sold by MicroMake
79 79
 #define BOARD_TRIGORILLA_13     343   // TriGorilla Anycubic version 1.3 based on RAMPS EFB
80
+#define BOARD_TRIGORILLA_14     443   // TriGorilla Anycubic version 1.4 based on RAMPS EFB
80 81
 #define BOARD_RAMPS_ENDER_4     243   // Creality: Ender-4, CR-8
81 82
 
82 83
 //

+ 4
- 2
Marlin/src/pins/pins.h 查看文件

@@ -138,6 +138,10 @@
138 138
   #include "pins_MAKEBOARD_MINI.h"    // ATmega2560
139 139
 #elif MB(TRIGORILLA_13)
140 140
   #include "pins_TRIGORILLA_13.h"     // ATmega2560
141
+#elif MB(TRIGORILLA_14)
142
+  #include "pins_TRIGORILLA_14.h"     // ATmega2560
143
+#elif MB(RAMPS_ENDER_4)
144
+  #include "pins_RAMPS_ENDER_4.h"     // ATmega2560
141 145
 
142 146
 //
143 147
 // Other ATmega1280, ATmega2560
@@ -179,8 +183,6 @@
179 183
   #include "pins_GT2560_REV_A.h"      // ATmega1280, ATmega2560
180 184
 #elif MB(GT2560_REV_A_PLUS)
181 185
   #include "pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560
182
-#elif MB(RAMPS_ENDER_4)
183
-  #include "pins_RAMPS_ENDER_4.h"     // ATmega2560
184 186
 
185 187
 //
186 188
 // ATmega1281, ATmega2561

+ 4
- 12
Marlin/src/pins/pins_TRIGORILLA_13.h 查看文件

@@ -21,27 +21,19 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Arduino Mega with RAMPS v1.4 for Anycubic
25
- *
26
- * Defines RAMPS_D44_PIN 44
27
- * Defines FAN_PIN RAMPS_D44_PIN or -1
24
+ * Arduino Mega with RAMPS v1.3 for Anycubic
28 25
  */
29 26
 
30 27
 #ifndef BOARD_NAME
31
-  #define BOARD_NAME "Anycubic RAMPS 1.4"
28
+  #define BOARD_NAME "Anycubic RAMPS 1.3"
32 29
 #endif
33 30
 
34 31
 #define IS_RAMPS_EFB
32
+#define RAMPS_D9_PIN       44
33
+#define ORIG_E0_AUTO_FAN_PIN RAMPS_D9_PIN
35 34
 
36 35
 #include "pins_RAMPS_13.h"
37 36
 
38
-#undef FAN_PIN
39
-#define RAMPS_D44_PIN      44
40
-#define FAN_PIN            RAMPS_D44_PIN
41
-
42
-#undef ORIG_E0_AUTO_FAN_PIN
43
-#define ORIG_E0_AUTO_FAN_PIN RAMPS_D44_PIN
44
-
45 37
 #undef E1_STEP_PIN
46 38
 #undef E1_DIR_PIN
47 39
 #undef E1_ENABLE_PIN

+ 40
- 0
Marlin/src/pins/pins_TRIGORILLA_14.h 查看文件

@@ -0,0 +1,40 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/**
24
+ * Arduino Mega with RAMPS v1.4 for Anycubic
25
+ */
26
+
27
+#ifndef BOARD_NAME
28
+  #define BOARD_NAME "Anycubic RAMPS 1.4"
29
+#endif
30
+
31
+#define IS_RAMPS_EFB
32
+
33
+#include "pins_RAMPS_13.h"
34
+
35
+#define FAN2_PIN           44
36
+
37
+#undef E1_STEP_PIN
38
+#undef E1_DIR_PIN
39
+#undef E1_ENABLE_PIN
40
+#undef E1_CS_PIN

Loading…
取消
儲存