|
@@ -0,0 +1,154 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
4
|
+ *
|
|
5
|
+ * Based on Sprinter and grbl.
|
|
6
|
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
7
|
+ *
|
|
8
|
+ * This program is free software: you can redistribute it and/or modify
|
|
9
|
+ * it under the terms of the GNU General Public License as published by
|
|
10
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+ * (at your option) any later version.
|
|
12
|
+ *
|
|
13
|
+ * This program is distributed in the hope that it will be useful,
|
|
14
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+ * GNU General Public License for more details.
|
|
17
|
+ *
|
|
18
|
+ * You should have received a copy of the GNU General Public License
|
|
19
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+#pragma once
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * MRR ESPE pin assignments
|
|
26
|
+ * MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
|
|
27
|
+ * Supports 5 stepper drivers (using I2S stepper stream), heated bed,
|
|
28
|
+ * single hotend, and LCD controller.
|
|
29
|
+ */
|
|
30
|
+
|
|
31
|
+#ifndef ARDUINO_ARCH_ESP32
|
|
32
|
+ #error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
|
33
|
+#elif EXTRUDERS > 2 || E_STEPPERS > 2
|
|
34
|
+ #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
|
|
35
|
+#elif HOTENDS > 1
|
|
36
|
+ #error "MRR ESPE currently supports only one hotend. Comment out this line to continue."
|
|
37
|
+#endif
|
|
38
|
+
|
|
39
|
+#define BOARD_INFO_NAME "MRR ESPE"
|
|
40
|
+#define BOARD_WEBSITE_URL "github.com/maplerainresearch/MRR_ESPE"
|
|
41
|
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
|
42
|
+
|
|
43
|
+//
|
|
44
|
+// Limit Switches
|
|
45
|
+//
|
|
46
|
+#define X_STOP_PIN 35
|
|
47
|
+#define Y_STOP_PIN 32
|
|
48
|
+#define Z_STOP_PIN 33
|
|
49
|
+
|
|
50
|
+//
|
|
51
|
+// Enable I2S stepper stream
|
|
52
|
+//
|
|
53
|
+#undef I2S_STEPPER_STREAM
|
|
54
|
+#define I2S_STEPPER_STREAM
|
|
55
|
+
|
|
56
|
+#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
|
|
57
|
+
|
|
58
|
+#define I2S_WS 26
|
|
59
|
+#define I2S_BCK 25
|
|
60
|
+#define I2S_DATA 27
|
|
61
|
+
|
|
62
|
+//
|
|
63
|
+// Steppers
|
|
64
|
+//
|
|
65
|
+#define X_STEP_PIN 129
|
|
66
|
+#define X_DIR_PIN 130
|
|
67
|
+#define X_ENABLE_PIN 128
|
|
68
|
+//#define X_CS_PIN 21
|
|
69
|
+
|
|
70
|
+#define Y_STEP_PIN 132
|
|
71
|
+#define Y_DIR_PIN 133
|
|
72
|
+#define Y_ENABLE_PIN 131
|
|
73
|
+//#define Y_CS_PIN 22
|
|
74
|
+
|
|
75
|
+#define Z_STEP_PIN 135
|
|
76
|
+#define Z_DIR_PIN 136
|
|
77
|
+#define Z_ENABLE_PIN 134
|
|
78
|
+//#define Z_CS_PIN 5 // SS_PIN
|
|
79
|
+
|
|
80
|
+#define E0_STEP_PIN 138
|
|
81
|
+#define E0_DIR_PIN 139
|
|
82
|
+#define E0_ENABLE_PIN 137
|
|
83
|
+//#define E0_CS_PIN 21
|
|
84
|
+
|
|
85
|
+#define E1_STEP_PIN 141
|
|
86
|
+#define E1_DIR_PIN 142
|
|
87
|
+#define E1_ENABLE_PIN 140
|
|
88
|
+//#define E1_CS_PIN 22
|
|
89
|
+
|
|
90
|
+#define Z2_STEP_PIN 141
|
|
91
|
+#define Z2_DIR_PIN 142
|
|
92
|
+#define Z2_ENABLE_PIN 140
|
|
93
|
+//#define Z2_CS_PIN 5
|
|
94
|
+
|
|
95
|
+//
|
|
96
|
+// Temperature Sensors
|
|
97
|
+//
|
|
98
|
+#define TEMP_0_PIN 36 // Analog Input
|
|
99
|
+#define TEMP_1_PIN 34 // Analog Input
|
|
100
|
+#define TEMP_BED_PIN 39 // Analog Input
|
|
101
|
+
|
|
102
|
+//
|
|
103
|
+// Heaters / Fans
|
|
104
|
+//
|
|
105
|
+#define HEATER_0_PIN 145 // 2
|
|
106
|
+#define FAN_PIN 146 // 15
|
|
107
|
+#define HEATER_BED_PIN 144 // 4
|
|
108
|
+
|
|
109
|
+#define CONTROLLER_FAN_PIN 147
|
|
110
|
+//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
|
|
111
|
+//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
|
|
112
|
+#define FAN1_PIN 149
|
|
113
|
+
|
|
114
|
+//
|
|
115
|
+// MicroSD card
|
|
116
|
+//
|
|
117
|
+#define MOSI_PIN 23
|
|
118
|
+#define MISO_PIN 19
|
|
119
|
+#define SCK_PIN 18
|
|
120
|
+#define SDSS 5
|
|
121
|
+
|
|
122
|
+//////////////////////////
|
|
123
|
+// LCDs and Controllers //
|
|
124
|
+//////////////////////////
|
|
125
|
+
|
|
126
|
+#if HAS_GRAPHICAL_LCD
|
|
127
|
+
|
|
128
|
+ #define LCD_PINS_RS 13
|
|
129
|
+ #define LCD_PINS_ENABLE 17
|
|
130
|
+ #define LCD_PINS_D4 16
|
|
131
|
+
|
|
132
|
+ #if ENABLED(CR10_STOCKDISPLAY)
|
|
133
|
+
|
|
134
|
+ #define BEEPER_PIN 151
|
|
135
|
+
|
|
136
|
+ #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
137
|
+
|
|
138
|
+ #define BEEPER_PIN 152
|
|
139
|
+
|
|
140
|
+ //#define LCD_PINS_D5 150
|
|
141
|
+ //#define LCD_PINS_D6 151
|
|
142
|
+ //#define LCD_PINS_D7 153
|
|
143
|
+
|
|
144
|
+ #else
|
|
145
|
+
|
|
146
|
+ #error "Only CR10_STOCKDISPLAY and REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER are currently supported. Comment out this line to continue."
|
|
147
|
+
|
|
148
|
+ #endif
|
|
149
|
+
|
|
150
|
+ #define BTN_EN1 0
|
|
151
|
+ #define BTN_EN2 12
|
|
152
|
+ #define BTN_ENC 14
|
|
153
|
+
|
|
154
|
+#endif // HAS_GRAPHICAL_LCD
|