|
@@ -28,7 +28,14 @@
|
28
|
28
|
#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
29
|
29
|
#endif
|
30
|
30
|
|
31
|
|
-#define BOARD_NAME "Megatronics v3.0"
|
|
31
|
+#define MEGATRONICS_31
|
|
32
|
+
|
|
33
|
+#if ENABLED(MEGATRONICS_31)
|
|
34
|
+ #define BOARD_NAME "Megatronics v3.1"
|
|
35
|
+#else
|
|
36
|
+ #define BOARD_NAME "Megatronics v3.0"
|
|
37
|
+#endif
|
|
38
|
+
|
32
|
39
|
#define LARGE_FLASH true
|
33
|
40
|
|
34
|
41
|
#if ENABLED(Z_PROBE_SLED)
|
|
@@ -36,28 +43,28 @@
|
36
|
43
|
#endif
|
37
|
44
|
|
38
|
45
|
// Servo support
|
39
|
|
-#define SERVO0_PIN 46 //AUX3-6
|
40
|
|
-#define SERVO1_PIN 47 //AUX3-5
|
41
|
|
-#define SERVO2_PIN 48 //AUX3-4
|
42
|
|
-#define SERVO3_PIN 49 //AUX3-3
|
|
46
|
+#define SERVO0_PIN 46 // AUX3-6
|
|
47
|
+#define SERVO1_PIN 47 // AUX3-5
|
|
48
|
+#define SERVO2_PIN 48 // AUX3-4
|
|
49
|
+#define SERVO3_PIN 49 // AUX3-3
|
43
|
50
|
|
44
|
51
|
#define X_STEP_PIN 58
|
45
|
52
|
#define X_DIR_PIN 57
|
46
|
53
|
#define X_ENABLE_PIN 59
|
47
|
54
|
#define X_MIN_PIN 37
|
48
|
|
-#define X_MAX_PIN 40 // put to -1 to disable
|
|
55
|
+#define X_MAX_PIN 40
|
49
|
56
|
|
50
|
57
|
#define Y_STEP_PIN 5
|
51
|
58
|
#define Y_DIR_PIN 17
|
52
|
59
|
#define Y_ENABLE_PIN 4
|
53
|
60
|
#define Y_MIN_PIN 41
|
54
|
|
-#define Y_MAX_PIN 38 // put to -1 to disable
|
|
61
|
+#define Y_MAX_PIN 38
|
55
|
62
|
|
56
|
63
|
#define Z_STEP_PIN 16
|
57
|
64
|
#define Z_DIR_PIN 11
|
58
|
65
|
#define Z_ENABLE_PIN 3
|
59
|
66
|
#define Z_MIN_PIN 18
|
60
|
|
-#define Z_MAX_PIN 19 // put to -1 to disable
|
|
67
|
+#define Z_MAX_PIN 19
|
61
|
68
|
|
62
|
69
|
#define E0_STEP_PIN 28
|
63
|
70
|
#define E0_DIR_PIN 27
|
|
@@ -104,36 +111,11 @@
|
104
|
111
|
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
105
|
112
|
#endif
|
106
|
113
|
|
|
114
|
+/**
|
|
115
|
+ * Controllers and LCDs
|
|
116
|
+ */
|
107
|
117
|
#define BEEPER_PIN 61
|
108
|
118
|
|
109
|
|
-#if ENABLED(DOGLCD)
|
110
|
|
-
|
111
|
|
- #if ENABLED(U8GLIB_ST7920)
|
112
|
|
- #define LCD_PINS_RS 56 //CS chip select /SS chip slave select
|
113
|
|
- #define LCD_PINS_ENABLE 51 //SID (MOSI)
|
114
|
|
- #define LCD_PINS_D4 52 //SCK (CLK) clock
|
115
|
|
- #define SD_DETECT_PIN 35
|
116
|
|
- #endif
|
117
|
|
-
|
118
|
|
-#else
|
119
|
|
-
|
120
|
|
- #define LCD_PINS_RS 32
|
121
|
|
- #define LCD_PINS_ENABLE 31
|
122
|
|
- #define LCD_PINS_D4 14
|
123
|
|
- #define LCD_PINS_D5 30
|
124
|
|
- #define LCD_PINS_D6 39
|
125
|
|
- #define LCD_PINS_D7 15
|
126
|
|
-
|
127
|
|
- #define SHIFT_CLK 43
|
128
|
|
- #define SHIFT_LD 35
|
129
|
|
- #define SHIFT_OUT 34
|
130
|
|
- #define SHIFT_EN 44
|
131
|
|
-
|
132
|
|
- #define SD_DETECT_PIN 56 // Megatronics v3.1 only
|
133
|
|
-
|
134
|
|
-#endif
|
135
|
|
-
|
136
|
|
-// Buttons are directly attached using keypad
|
137
|
119
|
#define BTN_EN1 44
|
138
|
120
|
#define BTN_EN2 45
|
139
|
121
|
#define BTN_ENC 33
|
|
@@ -141,3 +123,29 @@
|
141
|
123
|
#define BLEN_C 2
|
142
|
124
|
#define BLEN_B 1
|
143
|
125
|
#define BLEN_A 0
|
|
126
|
+
|
|
127
|
+#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
|
128
|
+ #define LCD_PINS_RS 56 // CS chip select / SS chip slave select
|
|
129
|
+ #define LCD_PINS_ENABLE 51 // SID (MOSI)
|
|
130
|
+ #define LCD_PINS_D4 52 // SCK (CLK) clock
|
|
131
|
+ #define SD_DETECT_PIN 35
|
|
132
|
+#else
|
|
133
|
+ #define LCD_PINS_RS 32
|
|
134
|
+ #define LCD_PINS_ENABLE 31
|
|
135
|
+ #define LCD_PINS_D4 14
|
|
136
|
+ #define LCD_PINS_D5 30
|
|
137
|
+ #define LCD_PINS_D6 39
|
|
138
|
+ #define LCD_PINS_D7 15
|
|
139
|
+
|
|
140
|
+ #define SHIFT_CLK 43
|
|
141
|
+ #define SHIFT_LD 35
|
|
142
|
+ #define SHIFT_OUT 34
|
|
143
|
+ #define SHIFT_EN 44
|
|
144
|
+
|
|
145
|
+ #if ENABLED(MEGATRONICS_31)
|
|
146
|
+ #define SD_DETECT_PIN 56
|
|
147
|
+ #else
|
|
148
|
+ #define SD_DETECT_PIN -1
|
|
149
|
+ #endif
|
|
150
|
+
|
|
151
|
+#endif
|