Browse Source

Merge pull request #284 from brackendawson/Marlin_v1

Use the right pins for Gen7 1.4
daid 11 years ago
parent
commit
539f3b3fe4
1 changed files with 78 additions and 9 deletions
  1. 78
    9
      Marlin/pins.h

+ 78
- 9
Marlin/pins.h View File

@@ -45,16 +45,11 @@
45 45
 #endif /* 99 */
46 46
 
47 47
 /****************************************************************************************
48
-* Gen7 v1.1, v1.2, v1.3, v1.4 pin assignment
48
+* Gen7 v1.1, v1.2, v1.3 pin assignment
49 49
 *
50 50
 ****************************************************************************************/
51 51
 
52 52
 
53
-#if MOTHERBOARD == 13
54
-#define MOTHERBOARD 11
55
-#define GEN7_VERSION 14 // v1.4
56
-#endif
57
-
58 53
 #if MOTHERBOARD == 12
59 54
 #define MOTHERBOARD 11
60 55
 #define GEN7_VERSION 13 // v1.3
@@ -122,12 +117,86 @@
122 117
 #endif
123 118
 #define PS_ON_PIN 15
124 119
 
125
-#if (GEN7_VERSION < 14)
126
-// Gen 1.3 and earlier supplied thermistor power via PS_ON
127
-// Need to ignore the bad thermistor readings on those units
120
+//All these generations of Gen7 supply thermistor power
121
+//via PS_ON, so ignore bad thermistor readings
128 122
 #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
123
+
124
+//our pin for debugging.
125
+#define DEBUG_PIN 0
126
+
127
+//our RS485 pins
128
+#define TX_ENABLE_PIN 12
129
+#define RX_ENABLE_PIN 13
130
+
131
+#endif
132
+
133
+/****************************************************************************************
134
+* Gen7 v1.4 pin assignment
135
+*
136
+****************************************************************************************/
137
+
138
+#if MOTHERBOARD == 13
139
+#define GEN7_VERSION 14 // v1.4
140
+#endif
141
+
142
+#if MOTHERBOARD == 13
143
+#define KNOWN_BOARD
144
+
145
+#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
146
+#error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
147
+
148
+#endif
149
+
150
+#ifndef GEN7_VERSION
151
+#define GEN7_VERSION 14 // v1.x
129 152
 #endif
130 153
 
154
+//x axis pins
155
+#define X_STEP_PIN 29
156
+#define X_DIR_PIN 28
157
+#define X_ENABLE_PIN 25
158
+#define X_MIN_PIN 0
159
+#define X_MAX_PIN -1
160
+
161
+//y axis pins
162
+#define Y_STEP_PIN 27
163
+#define Y_DIR_PIN 26
164
+#define Y_ENABLE_PIN 25
165
+#define Y_MIN_PIN 1
166
+#define Y_MAX_PIN -1
167
+
168
+//z axis pins
169
+#define Z_STEP_PIN 23
170
+#define Z_DIR_PIN 22
171
+#define Z_ENABLE_PIN 25
172
+#define Z_MIN_PIN 2
173
+#define Z_MAX_PIN -1
174
+
175
+//extruder pins
176
+#define E0_STEP_PIN 19
177
+#define E0_DIR_PIN 18
178
+#define E0_ENABLE_PIN 25
179
+
180
+#define TEMP_0_PIN 0
181
+#define TEMP_1_PIN -1
182
+#define TEMP_2_PIN -1
183
+#define TEMP_BED_PIN 1
184
+
185
+#define HEATER_0_PIN 4
186
+#define HEATER_1_PIN -1
187
+#define HEATER_2_PIN -1
188
+#define HEATER_BED_PIN 3
189
+
190
+#define KILL_PIN -1
191
+
192
+#define SDPOWER -1
193
+#define SDSS -1 // SCL pin of I2C header
194
+#define LED_PIN -1
195
+
196
+#define FAN_PIN -1
197
+
198
+#define PS_ON_PIN 15
199
+
131 200
 //our pin for debugging.
132 201
 #define DEBUG_PIN 0
133 202
 

Loading…
Cancel
Save