|
@@ -0,0 +1,132 @@
|
|
1
|
+/**
|
|
2
|
+ * Mega controller pin assignments
|
|
3
|
+ */
|
|
4
|
+
|
|
5
|
+#ifndef __AVR_ATmega2560__
|
|
6
|
+ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
|
|
7
|
+#endif
|
|
8
|
+
|
|
9
|
+#if EXTRUDERS > 3
|
|
10
|
+ #error RUMBA supports up to 3 extruders. Comment this line to keep going.
|
|
11
|
+#endif
|
|
12
|
+ #define X_STEP_PIN 62//A8
|
|
13
|
+ #define X_DIR_PIN 63//A9
|
|
14
|
+ #define X_ENABLE_PIN 61//A7
|
|
15
|
+#ifdef DELTA
|
|
16
|
+ #define X_MIN_PIN -1
|
|
17
|
+#else
|
|
18
|
+ #define X_MIN_PIN 43
|
|
19
|
+#endif //DELTA
|
|
20
|
+ #define X_MAX_PIN 42 //2 //Max endstops default to disabled "-1", set to commented value to enable.
|
|
21
|
+
|
|
22
|
+ #define Y_STEP_PIN 65 // A11
|
|
23
|
+ #define Y_DIR_PIN 66 // A12
|
|
24
|
+ #define Y_ENABLE_PIN 64//A10
|
|
25
|
+#ifdef DELTA
|
|
26
|
+ #define Y_MIN_PIN -1
|
|
27
|
+#else
|
|
28
|
+ #define Y_MIN_PIN 38
|
|
29
|
+#endif //DELTA
|
|
30
|
+ #define Y_MAX_PIN 41 //15
|
|
31
|
+
|
|
32
|
+ #define Z_STEP_PIN 68 // A14
|
|
33
|
+ #define Z_DIR_PIN 69 // A15
|
|
34
|
+ #define Z_ENABLE_PIN 67 // A13
|
|
35
|
+ #define Z_MIN_PIN 40
|
|
36
|
+ #define Z_MAX_PIN 37
|
|
37
|
+
|
|
38
|
+ #define E0_STEP_PIN 23
|
|
39
|
+ #define E0_DIR_PIN 24
|
|
40
|
+ #define E0_ENABLE_PIN 22
|
|
41
|
+
|
|
42
|
+ #define E1_STEP_PIN 26
|
|
43
|
+ #define E1_DIR_PIN 27
|
|
44
|
+ #define E1_ENABLE_PIN 25
|
|
45
|
+
|
|
46
|
+ #define SDPOWER -1
|
|
47
|
+ #define SDSS 53
|
|
48
|
+ #define LED_PIN 13
|
|
49
|
+
|
|
50
|
+ #define FAN_PIN 39
|
|
51
|
+ #define FAN1_PIN 35
|
|
52
|
+ #define FAN2_PIN 36
|
|
53
|
+ #define FAN_SOFT_PWM
|
|
54
|
+ #define CONTROLLERFAN_PIN 36
|
|
55
|
+ #define PS_ON_PIN -1
|
|
56
|
+ #define KILL_PIN -1
|
|
57
|
+
|
|
58
|
+ #define HEATER_0_PIN 29 // EXTRUDER 1
|
|
59
|
+ #define HEATER_1_PIN 34 // EXTRUDER 2
|
|
60
|
+ #define HEATER_2_PIN -1
|
|
61
|
+
|
|
62
|
+ #if TEMP_SENSOR_0 == -1
|
|
63
|
+ #define TEMP_0_PIN 4 // ANALOG NUMBERING
|
|
64
|
+ #else
|
|
65
|
+ #define TEMP_0_PIN 0 // ANALOG NUMBERING
|
|
66
|
+ #endif
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+ #if TEMP_SENSOR_1 == -1
|
|
70
|
+ #define TEMP_1_PIN 5 // ANALOG NUMBERING
|
|
71
|
+ #else
|
|
72
|
+ #define TEMP_1_PIN 2 // ANALOG NUMBERING
|
|
73
|
+ #endif
|
|
74
|
+
|
|
75
|
+ #define TEMP_2_PIN 3 // ANALOG NUMBERING
|
|
76
|
+
|
|
77
|
+ #define HEATER_BED_PIN 28 // BED
|
|
78
|
+
|
|
79
|
+ #if TEMP_SENSOR_BED == -1
|
|
80
|
+ #define TEMP_BED_PIN 6 // ANALOG NUMBERING
|
|
81
|
+ #else
|
|
82
|
+ #define TEMP_BED_PIN 1 // ANALOG NUMBERING
|
|
83
|
+ #endif
|
|
84
|
+
|
|
85
|
+ #ifdef NUM_SERVOS
|
|
86
|
+ #define SERVO0_PIN 30
|
|
87
|
+
|
|
88
|
+ #if NUM_SERVOS > 1
|
|
89
|
+ #define SERVO1_PIN 31
|
|
90
|
+ #endif
|
|
91
|
+
|
|
92
|
+ #if NUM_SERVOS > 2
|
|
93
|
+ #define SERVO2_PIN 32
|
|
94
|
+ #endif
|
|
95
|
+
|
|
96
|
+ #if NUM_SERVOS > 3
|
|
97
|
+ #define SERVO3_PIN 33
|
|
98
|
+ #endif
|
|
99
|
+ #endif
|
|
100
|
+
|
|
101
|
+ #ifdef MINIPANEL
|
|
102
|
+ #define BEEPER 46
|
|
103
|
+ // Pins for DOGM SPI LCD Support
|
|
104
|
+ #define DOGLCD_A0 47
|
|
105
|
+ #define DOGLCD_CS 45
|
|
106
|
+ #define LCD_PIN_BL 44 // backlight LED on PA3
|
|
107
|
+
|
|
108
|
+ #define KILL_PIN 12
|
|
109
|
+ // GLCD features
|
|
110
|
+ //#define LCD_CONTRAST 190
|
|
111
|
+ // Uncomment screen orientation
|
|
112
|
+ // #define LCD_SCREEN_ROT_90
|
|
113
|
+ // #define LCD_SCREEN_ROT_180
|
|
114
|
+ // #define LCD_SCREEN_ROT_270
|
|
115
|
+ //The encoder and click button
|
|
116
|
+ #define BTN_EN1 48
|
|
117
|
+ #define BTN_EN2 11
|
|
118
|
+ #define BTN_ENC 10 //the click switch
|
|
119
|
+ //not connected to a pin
|
|
120
|
+ #define SDCARDDETECT 49
|
|
121
|
+ #endif //Minipanel
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+ //encoder rotation values
|
|
125
|
+ #define encrot0 0
|
|
126
|
+ #define encrot1 2
|
|
127
|
+ #define encrot2 3
|
|
128
|
+ #define encrot3 1
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+#define SERVO0_PIN 5
|
|
132
|
+
|