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