浏览代码

New boards entry for the A20M

Scott Lahteine 5 年前
父节点
当前提交
159d7eefda
共有 5 个文件被更改,包括 59 次插入1 次删除
  1. 6
    0
      Marlin/Makefile
  2. 1
    0
      Marlin/src/core/boards.h
  3. 2
    0
      Marlin/src/pins/pins.h
  4. 5
    1
      Marlin/src/pins/pins_GT2560_V3.h
  5. 45
    0
      Marlin/src/pins/pins_GT2560_V3_A20.h

+ 6
- 0
Marlin/Makefile 查看文件

@@ -276,10 +276,16 @@ else ifeq ($(HARDWARE_MOTHERBOARD),999)
276 276
 else ifeq ($(HARDWARE_MOTHERBOARD),310)
277 277
 # abee Scoovo X9H
278 278
 else ifeq ($(HARDWARE_MOTHERBOARD),321)
279
+# Geeetech GT2560 Rev B for Mecreator2
280
+else ifeq ($(HARDWARE_MOTHERBOARD),73)
279 281
 # Geeetech GT2560 Rev. A
280 282
 else ifeq ($(HARDWARE_MOTHERBOARD),74)
281 283
 # Geeetech GT2560 Rev. A+ (with auto level probe)
282 284
 else ifeq ($(HARDWARE_MOTHERBOARD),75)
285
+# Geeetech GT2560 Rev B for A10(M/D)
286
+else ifeq ($(HARDWARE_MOTHERBOARD),76)
287
+# Geeetech GT2560 Rev B for A20(M/D)
288
+else ifeq ($(HARDWARE_MOTHERBOARD),86)
283 289
 
284 290
 #
285 291
 # ATmega1281, ATmega2561

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

@@ -117,6 +117,7 @@
117 117
 #define BOARD_GT2560_REV_A_PLUS 75    // Geeetech GT2560 Rev. A+ (with auto level probe)
118 118
 #define BOARD_GT2560_V3         76    // Geeetech GT2560 Rev B for A10(M/D)
119 119
 #define BOARD_GT2560_V3_MC2     73    // Geeetech GT2560 Rev B for Mecreator2
120
+#define BOARD_GT2560_V3_A20     86    // Geeetech GT2560 Rev B for A20(M/D)
120 121
 #define BOARD_EINSTART_S        666   // Einstart retrofit
121 122
 
122 123
 //

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

@@ -209,6 +209,8 @@
209 209
   #include "pins_GT2560_V3.h"         // ATmega2560                                 env:megaatmega2560
210 210
 #elif MB(GT2560_V3_MC2)
211 211
   #include "pins_GT2560_V3_MC2.h"     // ATmega2560                                 env:megaatmega2560
212
+#elif MB(GT2560_V3_A20)
213
+  #include "pins_GT2560_V3_A20.h"     // ATmega2560                                 env:megaatmega2560
212 214
 #elif MB(EINSTART_S)
213 215
   #include "pins_EINSTART-S.h"        // ATmega1280, ATmega2560                     env:megaatmega1280 env:megaatmega2560
214 216
 

+ 5
- 1
Marlin/src/pins/pins_GT2560_V3.h 查看文件

@@ -34,6 +34,11 @@
34 34
 #endif
35 35
 
36 36
 //
37
+// Servos
38
+//
39
+#define SERVO0_PIN         11   //13 untested  3Dtouch
40
+
41
+//
37 42
 // Limit Switches
38 43
 //
39 44
 #define X_MIN_PIN          24
@@ -98,7 +103,6 @@
98 103
 #define LED_PIN             6
99 104
 #define PS_ON_PIN          12
100 105
 #define SUICIDE_PIN        54   //PIN that has to be turned on right after start, to keep power flowing.
101
-#define SERVO0_PIN         11   //13 untested  3Dtouch
102 106
 
103 107
 #ifndef CASE_LIGHT_PIN
104 108
   //#define CASE_LIGHT_PIN 21

+ 45
- 0
Marlin/src/pins/pins_GT2560_V3_A20.h 查看文件

@@ -0,0 +1,45 @@
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
+ * Geeetech A20M pin assignment
25
+ */
26
+
27
+#include "pins_GT2560_V3.h"
28
+
29
+#undef LCD_PINS_RS
30
+#undef LCD_PINS_ENABLE
31
+#undef LCD_PINS_D4
32
+#undef LCD_PINS_D7
33
+#define LCD_PINS_RS       5
34
+#define LCD_PINS_ENABLE  36
35
+#define LCD_PINS_D4      21
36
+#define LCD_PINS_D7       6
37
+
38
+#if ENABLED(NEWPANEL)
39
+  #undef BTN_EN1
40
+  #undef BTN_EN2
41
+  #undef BTN_ENC
42
+  #define BTN_EN1        16
43
+  #define BTN_EN2        17
44
+  #define BTN_ENC        19
45
+#endif

正在加载...
取消
保存