|
@@ -0,0 +1,103 @@
|
|
1
|
+/**
|
|
2
|
+ * MegaTronics v2.0 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
|
+#define LARGE_FLASH true
|
|
10
|
+
|
|
11
|
+#define X_STEP_PIN 26
|
|
12
|
+#define X_DIR_PIN 27
|
|
13
|
+#define X_ENABLE_PIN 25
|
|
14
|
+#define X_MIN_PIN 37
|
|
15
|
+#define X_MAX_PIN 40
|
|
16
|
+
|
|
17
|
+#define Y_STEP_PIN 4 // A6
|
|
18
|
+#define Y_DIR_PIN 54 // A0
|
|
19
|
+#define Y_ENABLE_PIN 5
|
|
20
|
+#define Y_MIN_PIN 41
|
|
21
|
+#define Y_MAX_PIN 38
|
|
22
|
+
|
|
23
|
+#define Z_STEP_PIN 56 // A2
|
|
24
|
+#define Z_DIR_PIN 60 // A6
|
|
25
|
+#define Z_ENABLE_PIN 55 // A1
|
|
26
|
+#define Z_MIN_PIN 18
|
|
27
|
+#define Z_MAX_PIN 19
|
|
28
|
+
|
|
29
|
+#define E0_STEP_PIN 35
|
|
30
|
+#define E0_DIR_PIN 36
|
|
31
|
+#define E0_ENABLE_PIN 34
|
|
32
|
+
|
|
33
|
+#define E1_STEP_PIN 29
|
|
34
|
+#define E1_DIR_PIN 39
|
|
35
|
+#define E1_ENABLE_PIN 28
|
|
36
|
+
|
|
37
|
+#define E2_STEP_PIN 23
|
|
38
|
+#define E2_DIR_PIN 24
|
|
39
|
+#define E2_ENABLE_PIN 22
|
|
40
|
+
|
|
41
|
+#define SDPOWER -1
|
|
42
|
+#define SDSS 53
|
|
43
|
+#define LED_PIN 13
|
|
44
|
+
|
|
45
|
+#define FAN_PIN 7
|
|
46
|
+#define FAN2_PIN 6
|
|
47
|
+#define PS_ON_PIN 12
|
|
48
|
+#define KILL_PIN -1
|
|
49
|
+
|
|
50
|
+#define HEATER_0_PIN 9 // EXTRUDER 1
|
|
51
|
+#define HEATER_1_PIN 8 // EXTRUDER 2
|
|
52
|
+#define HEATER_2_PIN -1
|
|
53
|
+
|
|
54
|
+#if TEMP_SENSOR_0 == -1
|
|
55
|
+ #define TEMP_0_PIN 4 // ANALOG NUMBERING
|
|
56
|
+#else
|
|
57
|
+ #define TEMP_0_PIN 13 // ANALOG NUMBERING
|
|
58
|
+#endif
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+#if TEMP_SENSOR_1 == -1
|
|
62
|
+ #define TEMP_1_PIN 8 // ANALOG NUMBERING
|
|
63
|
+#else
|
|
64
|
+ #define TEMP_1_PIN 15 // ANALOG NUMBERING
|
|
65
|
+#endif
|
|
66
|
+
|
|
67
|
+#define TEMP_2_PIN -1 // ANALOG NUMBERING
|
|
68
|
+
|
|
69
|
+#define HEATER_BED_PIN 10 // BED
|
|
70
|
+
|
|
71
|
+#if TEMP_SENSOR_BED == -1
|
|
72
|
+ #define TEMP_BED_PIN 8 // ANALOG NUMBERING
|
|
73
|
+#else
|
|
74
|
+ #define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
|
75
|
+#endif
|
|
76
|
+
|
|
77
|
+#define BEEPER 64
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+#define LCD_PINS_RS 14
|
|
81
|
+#define LCD_PINS_ENABLE 15
|
|
82
|
+#define LCD_PINS_D4 30
|
|
83
|
+#define LCD_PINS_D5 31
|
|
84
|
+#define LCD_PINS_D6 32
|
|
85
|
+#define LCD_PINS_D7 33
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+// Buttons are directly attached using keypad
|
|
89
|
+#define BTN_EN1 61
|
|
90
|
+#define BTN_EN2 59
|
|
91
|
+#define BTN_ENC 43 //the click
|
|
92
|
+
|
|
93
|
+#define BLEN_C 2
|
|
94
|
+#define BLEN_B 1
|
|
95
|
+#define BLEN_A 0
|
|
96
|
+
|
|
97
|
+#define SDCARDDETECT -1 // Megatronics does not use this port
|
|
98
|
+
|
|
99
|
+// Encoder rotation values
|
|
100
|
+#define encrot0 0
|
|
101
|
+#define encrot1 2
|
|
102
|
+#define encrot2 3
|
|
103
|
+#define encrot3 1
|