Browse Source

Fix Gen7 1.4 pinout

Gen7 1.4 uses very different pin assignments, might as well make a new
section and remove some of the conditionals from each. It's easier to change
your pin assingment this way if like me you don't wire it exactly to plan.
Bracken Dawson 13 years ago
parent
commit
47d4f55bc0
1 changed files with 74 additions and 10 deletions
  1. 74
    10
      Marlin/pins.h

+ 74
- 10
Marlin/pins.h View File

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

Loading…
Cancel
Save