Browse Source

Add GT2560 v3 support (#11914)

InsanityAutomation 6 years ago
parent
commit
cb9dc56630

+ 1
- 0
Marlin/src/core/boards.h View File

@@ -83,6 +83,7 @@
83 83
 #define BOARD_TRIGORILLA_13     343   // TriGorilla Anycubic version 1.3 based on RAMPS EFB
84 84
 #define BOARD_TRIGORILLA_14     443   // TriGorilla Anycubic version 1.4 based on RAMPS EFB
85 85
 #define BOARD_RAMPS_ENDER_4     243   // Creality: Ender-4, CR-8
86
+#define BOARD_GT2560_V3         76    // Geeetech A10
86 87
 
87 88
 //
88 89
 // Other ATmega1280, ATmega2560

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -150,6 +150,8 @@
150 150
   #include "pins_TRIGORILLA_14.h"     // ATmega2560                                 env:megaatmega2560
151 151
 #elif MB(RAMPS_ENDER_4)
152 152
   #include "pins_RAMPS_ENDER_4.h"     // ATmega2560                                 env:megaatmega2560
153
+#elif MB(GT2560_V3)
154
+  #include "pins_GT2560_V3.h"         // ATmega2560                                 env:megaatmega2560
153 155
 
154 156
 //
155 157
 // Other ATmega1280, ATmega2560

+ 1
- 0
Marlin/src/pins/pins_FORMBOT_TREX2PLUS.h View File

@@ -143,6 +143,7 @@
143 143
 #define HEATER_BED_PIN     58
144 144
 
145 145
 #define FAN_PIN             9
146
+
146 147
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
147 148
   #define FIL_RUNOUT_PIN    4
148 149
   //#define FIL_RUNOUT2_PIN  -1

+ 124
- 0
Marlin/src/pins/pins_GT2560_V3.h View File

@@ -0,0 +1,124 @@
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
+/**
25
+ * GT2560 V3.0 pin assignment
26
+ */
27
+
28
+#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
29
+  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
30
+#endif
31
+
32
+#ifndef BOARD_NAME
33
+  #define BOARD_NAME "GT2560 V3.0"
34
+#endif
35
+
36
+//
37
+// Limit Switches
38
+//
39
+#define X_MIN_PIN          24
40
+#define X_MAX_PIN          22
41
+#define Y_MIN_PIN          28
42
+#define Y_MAX_PIN          26
43
+#define Z_MIN_PIN          30
44
+#define Z_MAX_PIN          32
45
+
46
+//
47
+// Z Probe (when not Z_MIN_PIN)
48
+//
49
+#ifndef Z_MIN_PROBE_PIN
50
+  #define Z_MIN_PROBE_PIN  32
51
+#endif
52
+
53
+//
54
+// Steppers
55
+//
56
+#define X_STEP_PIN         37
57
+#define X_DIR_PIN          39
58
+#define X_ENABLE_PIN       35
59
+
60
+#define Y_STEP_PIN         31
61
+#define Y_DIR_PIN          33
62
+#define Y_ENABLE_PIN       29
63
+
64
+#define Z_STEP_PIN         25
65
+#define Z_DIR_PIN          23
66
+#define Z_ENABLE_PIN       27
67
+
68
+#define E0_STEP_PIN        46
69
+#define E0_DIR_PIN         44
70
+#define E0_ENABLE_PIN      12
71
+
72
+#define E1_STEP_PIN        49
73
+#define E1_DIR_PIN         47
74
+#define E1_ENABLE_PIN      48
75
+
76
+//
77
+// Temperature Sensors
78
+//
79
+#define TEMP_0_PIN         11   // Analog Input
80
+#define TEMP_1_PIN          9   // Analog Input
81
+#define TEMP_2_PIN          1   // Analog Input
82
+#define TEMP_BED_PIN       10   // Analog Input
83
+
84
+//
85
+// Heaters / Fans
86
+//
87
+#define HEATER_0_PIN       10
88
+#define HEATER_1_PIN        3
89
+#define HEATER_2_PIN        1
90
+#define HEATER_BED_PIN      4
91
+#define FAN_PIN             9
92
+
93
+//
94
+// Misc. Functions
95
+//
96
+#define SD_DETECT_PIN      38
97
+#define SDSS               53
98
+#define LED_PIN             6
99
+#define PS_ON_PIN          12
100
+#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
+
103
+#ifndef CASE_LIGHT_PIN
104
+  //#define CASE_LIGHT_PIN 21
105
+  #define CASE_LIGHT_PIN    6
106
+#endif
107
+
108
+//
109
+// LCD Controller
110
+//
111
+#define BEEPER_PIN         18
112
+
113
+#define LCD_PINS_RS        20
114
+#define LCD_PINS_ENABLE    17
115
+#define LCD_PINS_D4        16
116
+#define LCD_PINS_D5        21
117
+#define LCD_PINS_D6         5
118
+#define LCD_PINS_D7        36
119
+
120
+#if ENABLED(NEWPANEL)
121
+  #define BTN_EN1          42
122
+  #define BTN_EN2          40
123
+  #define BTN_ENC          19
124
+#endif

Loading…
Cancel
Save