|
1 #ifndef _PINS_H |
|
2 #define _PINS_H |
|
3 |
|
4 /**************************************************************************************** |
|
5 * Sanguinololu pin assignment |
|
6 * |
|
7 ****************************************************************************************/ |
|
8 #if MOTHERBOARD == 62 |
|
9 #define KNOWN_BOARD 1 |
|
10 #ifndef __AVR_ATmega644P__ |
|
11 #ifndef __AVR_ATmega1284P__ |
|
12 #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. |
|
13 #endif |
|
14 #endif |
|
15 |
|
16 #define X_STEP_PIN 15 |
|
17 #define X_DIR_PIN 21 |
|
18 #define X_MIN_PIN 18 |
|
19 #define X_MAX_PIN -1 |
|
20 |
|
21 #define Y_STEP_PIN 22 |
|
22 #define Y_DIR_PIN 23 |
|
23 #define Y_MIN_PIN 19 |
|
24 #define Y_MAX_PIN -1 |
|
25 |
|
26 #define Z_STEP_PIN 3 |
|
27 #define Z_DIR_PIN 2 |
|
28 #define Z_MIN_PIN 20 |
|
29 #define Z_MAX_PIN -1 |
|
30 |
|
31 #define E0_STEP_PIN 1 |
|
32 #define E0_DIR_PIN 0 |
|
33 |
|
34 #define PROBE_PIN 20 |
|
35 |
|
36 #define LED_PIN -1 |
|
37 #define FAN_PIN 12 |
|
38 |
|
39 #define PS_ON_PIN -1 |
|
40 #define KILL_PIN -1 |
|
41 |
|
42 #define HEATER_0_PIN 13 // (extruder) |
|
43 #define HEATER_1_PIN -1 |
|
44 #define HEATER_2_PIN -1 |
|
45 |
|
46 #ifdef REPRAPPRO_HUXLEY |
|
47 #define HEATER_BED_PIN 10 // bed (change to 10 for gate pin of MOSFET on heated bed) |
|
48 #else |
|
49 #define HEATER_BED_PIN 12 |
|
50 #endif |
|
51 #define X_ENABLE_PIN 14 |
|
52 #define Y_ENABLE_PIN 14 |
|
53 #define Z_ENABLE_PIN 26 |
|
54 #define E0_ENABLE_PIN 14 |
|
55 |
|
56 #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder) |
|
57 #define TEMP_1_PIN -1 |
|
58 #define TEMP_2_PIN -1 |
|
59 #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) |
|
60 #define SDPOWER -1 |
|
61 #define SDSS 31 |
|
62 |
|
63 |
|
64 #endif |
|
65 |
|
66 /**************************************************************************************** |
|
67 * Melzi pin assignment |
|
68 * |
|
69 ****************************************************************************************/ |
|
70 #if MOTHERBOARD == 63 |
|
71 #define KNOWN_BOARD 1 |
|
72 #ifndef __AVR_ATmega644P__ |
|
73 #ifndef __AVR_ATmega1284P__ |
|
74 #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. |
|
75 #endif |
|
76 #endif |
|
77 |
|
78 #define X_STEP_PIN 15 |
|
79 #define X_DIR_PIN 21 |
|
80 #define X_MIN_PIN 18 |
|
81 #define X_MAX_PIN -2 |
|
82 |
|
83 #define Y_STEP_PIN 22 |
|
84 #define Y_DIR_PIN 23 |
|
85 #define Y_MIN_PIN 19 |
|
86 #define Y_MAX_PIN -1 |
|
87 |
|
88 #define Z_STEP_PIN 3 |
|
89 #define Z_DIR_PIN 2 |
|
90 #define Z_MIN_PIN 20 |
|
91 #define Z_MAX_PIN -1 |
|
92 |
|
93 #define E0_STEP_PIN 1 |
|
94 #define E0_DIR_PIN 0 |
|
95 |
|
96 #define PROBE_PIN -1 //29 on Melzi1284p A2 |
|
97 |
|
98 #define LED_PIN 27 |
|
99 #define M571_PIN 28 |
|
100 |
|
101 #define FAN_PIN 4 |
|
102 |
|
103 #define PS_ON_PIN -1 |
|
104 #define KILL_PIN -1 |
|
105 |
|
106 #define HEATER_0_PIN 13 // (extruder) |
|
107 #define HEATER_1_PIN -1 |
|
108 #define HEATER_2_PIN -1 |
|
109 #ifdef REPRAPPRO_HUXLEY |
|
110 #define HEATER_BED_PIN 10 // bed (change to 10 for gate pin of MOSFET on heated bed) |
|
111 #else |
|
112 #define HEATER_BED_PIN 12 |
|
113 #endif |
|
114 #define X_ENABLE_PIN 14 |
|
115 #define Y_ENABLE_PIN 14 |
|
116 #define Z_ENABLE_PIN 26 |
|
117 #define E0_ENABLE_PIN 14 |
|
118 |
|
119 #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder) |
|
120 #define TEMP_1_PIN -1 |
|
121 #define TEMP_2_PIN -1 |
|
122 #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) |
|
123 #define SDPOWER -1 |
|
124 #define SDSS 31 |
|
125 |
|
126 #define SLAVE_CLOCK 16 |
|
127 |
|
128 #endif |
|
129 |
|
130 |
|
131 |
|
132 #ifndef KNOWN_BOARD |
|
133 #error Unknown MOTHERBOARD value in configuration.h |
|
134 #endif |
|
135 |
|
136 //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those! |
|
137 #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN, |
|
138 #ifdef REPRAPPRO_MULTIMATERIALS |
|
139 #define _E1_PINS -1, -1, -1, -1, |
|
140 #define _E2_PINS -1, -1, -1, -1, |
|
141 #else |
|
142 #if EXTRUDERS > 1 |
|
143 #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN, |
|
144 #else |
|
145 #define _E1_PINS |
|
146 #endif |
|
147 #if EXTRUDERS > 2 |
|
148 #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN, |
|
149 #else |
|
150 #define _E2_PINS |
|
151 #endif |
|
152 #endif |
|
153 |
|
154 #ifdef DISABLE_MAX_ENDSTOPS |
|
155 #define X_MAX_PIN -1 |
|
156 #define Y_MAX_PIN -1 |
|
157 #define Z_MAX_PIN -1 |
|
158 #endif |
|
159 |
|
160 #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, LED_PIN, PS_ON_PIN, \ |
|
161 HEATER_BED_PIN, FAN_PIN, \ |
|
162 _E0_PINS _E1_PINS _E2_PINS \ |
|
163 TEMP_0_PIN, TEMP_1_PIN, TEMP_2_PIN, TEMP_BED_PIN } |
|
164 |
|
165 #endif |