|
@@ -0,0 +1,151 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2022 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 <https://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+#pragma once
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * eMotion-Tech eMotronic pin assignments
|
|
26
|
+ *
|
|
27
|
+ * Board pins<->features assignments are based on the
|
|
28
|
+ * Micro-Delta Rework printer default connections.
|
|
29
|
+ */
|
|
30
|
+
|
|
31
|
+#include "env_validate.h"
|
|
32
|
+
|
|
33
|
+#define BOARD_INFO_NAME "eMotronic"
|
|
34
|
+#define BOARD_WEBSITE_URL "www.reprap-france.com/article/lemotronic-quesaco"
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// Limit Switches
|
|
38
|
+//
|
|
39
|
+#define X_STOP_PIN P1_22 // S0
|
|
40
|
+#define Y_STOP_PIN P1_23 // S1
|
|
41
|
+#define Z_STOP_PIN P1_24 // S2
|
|
42
|
+#define I_STOP_PIN P1_25 // S3
|
|
43
|
+
|
|
44
|
+#ifndef Z_MIN_PROBE_PIN
|
|
45
|
+ #define Z_MIN_PROBE_PIN P0_26 // S4 (opto)
|
|
46
|
+#endif
|
|
47
|
+
|
|
48
|
+//
|
|
49
|
+// Steppers
|
|
50
|
+//
|
|
51
|
+#define X_STEP_PIN P2_02 // M3
|
|
52
|
+#define X_DIR_PIN P4_28
|
|
53
|
+#define X_ENABLE_PIN P4_29
|
|
54
|
+
|
|
55
|
+#define Y_STEP_PIN P2_01 // M2
|
|
56
|
+#define Y_DIR_PIN P0_22
|
|
57
|
+#define Y_ENABLE_PIN P0_21
|
|
58
|
+
|
|
59
|
+#define Z_STEP_PIN P2_00 // M1
|
|
60
|
+#define Z_DIR_PIN P3_26
|
|
61
|
+#define Z_ENABLE_PIN P3_25
|
|
62
|
+
|
|
63
|
+#define E0_STEP_PIN P2_03 // M4
|
|
64
|
+#define E0_DIR_PIN P0_04
|
|
65
|
+#define E0_ENABLE_PIN P0_05 // Correct!
|
|
66
|
+
|
|
67
|
+#define E1_STEP_PIN P2_08 // M5
|
|
68
|
+#define E1_DIR_PIN P0_20
|
|
69
|
+#define E1_ENABLE_PIN P0_19
|
|
70
|
+
|
|
71
|
+//
|
|
72
|
+// Temperature Sensors
|
|
73
|
+// 3.3V max when defined as an analog input
|
|
74
|
+//
|
|
75
|
+#define TEMP_0_PIN P0_24_A1 // A1 (TH1)
|
|
76
|
+#define TEMP_1_PIN P0_23_A0 // A0 (TH0)
|
|
77
|
+#define TEMP_BED_PIN P0_25_A2 // A2 (TH2)
|
|
78
|
+
|
|
79
|
+//
|
|
80
|
+// Heaters / Fans
|
|
81
|
+//
|
|
82
|
+#define _H0_PIN P2_04 // (H0: 15A)
|
|
83
|
+
|
|
84
|
+#define HEATER_BED_PIN P2_05 // (H1: 10A shared)
|
|
85
|
+#define HEATER_0_PIN P2_06 // (H2: 10A shared)
|
|
86
|
+#define HEATER_1_PIN P2_07 // (H3: 10A shared)
|
|
87
|
+
|
|
88
|
+#define FAN_PIN P2_11 // (FAN0: 1A)
|
|
89
|
+#define FAN1_PIN P2_13 // (FAN1: 1A)
|
|
90
|
+
|
|
91
|
+//
|
|
92
|
+// Extension ports
|
|
93
|
+//
|
|
94
|
+// warning: pins are backward numbered w.r.t. to the
|
|
95
|
+// schematics, e.g. EXP1_01 / EXP1_02 are X1-10 / X1-9.
|
|
96
|
+#define EXP1_01_PIN P0_28 // SCL0
|
|
97
|
+#define EXP1_02_PIN P0_27 // SDA0
|
|
98
|
+#define EXP1_03_PIN P0_16 // SSEL0
|
|
99
|
+#define EXP1_04_PIN P0_15 // SCK0
|
|
100
|
+#define EXP1_05_PIN P0_18 // MOSI0
|
|
101
|
+#define EXP1_06_PIN P0_17 // MISO0
|
|
102
|
+#define EXP1_07_PIN P1_31
|
|
103
|
+#define EXP1_08_PIN P1_30
|
|
104
|
+#define EXP1_09_PIN P0_02 // TX0
|
|
105
|
+#define EXP1_10_PIN P0_03 // RX0
|
|
106
|
+
|
|
107
|
+#define EXP2_03_PIN P1_27
|
|
108
|
+#define EXP2_04_PIN P1_26
|
|
109
|
+#define EXP2_05_PIN P1_29
|
|
110
|
+#define EXP2_06_PIN P1_28
|
|
111
|
+#define EXP2_07_PIN P0_01 // SCL1
|
|
112
|
+#define EXP2_08_PIN P0_00 // SDA1
|
|
113
|
+#define EXP2_09_PIN P0_11
|
|
114
|
+#define EXP2_10_PIN P0_10
|
|
115
|
+
|
|
116
|
+//
|
|
117
|
+// SD Support
|
|
118
|
+//
|
|
119
|
+#ifndef SDCARD_CONNECTION
|
|
120
|
+ #define SDCARD_CONNECTION ONBOARD
|
|
121
|
+#endif
|
|
122
|
+
|
|
123
|
+#if SD_CONNECTION_IS(ONBOARD)
|
|
124
|
+ #define SD_SCK_PIN P0_07
|
|
125
|
+ #define SD_MISO_PIN P0_08
|
|
126
|
+ #define SD_MOSI_PIN P0_09
|
|
127
|
+ #define SD_SS_PIN P0_06
|
|
128
|
+#elif SD_CONNECTION_IS(LCD)
|
|
129
|
+ #define SD_SCK_PIN EXP1_04_PIN
|
|
130
|
+ #define SD_MISO_PIN EXP1_06_PIN
|
|
131
|
+ #define SD_MOSI_PIN EXP1_05_PIN
|
|
132
|
+ #define SD_SS_PIN EXP1_03_PIN
|
|
133
|
+ #define SD_DETECT_PIN EXP1_07_PIN
|
|
134
|
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
|
135
|
+ #error "No custom SD drive cable defined for this board."
|
|
136
|
+#endif
|
|
137
|
+
|
|
138
|
+//
|
|
139
|
+// LCD / Controller
|
|
140
|
+//
|
|
141
|
+#if ENABLED(EMOTION_TECH_LCD)
|
|
142
|
+ #define BEEPER_PIN EXP2_10_PIN
|
|
143
|
+ #define DOGLCD_A0 EXP2_05_PIN
|
|
144
|
+ #define DOGLCD_CS EXP2_07_PIN
|
|
145
|
+ #define DOGLCD_SCK EXP1_04_PIN
|
|
146
|
+ #define DOGLCD_MOSI EXP1_05_PIN
|
|
147
|
+
|
|
148
|
+ #define BTN_EN1 EXP2_04_PIN
|
|
149
|
+ #define BTN_EN2 EXP2_06_PIN
|
|
150
|
+ #define BTN_ENC EXP2_09_PIN
|
|
151
|
+#endif
|