Browse Source

🧑‍💻 Einsy Rambo EXP headers (#24825)

ellensp 2 years ago
parent
commit
c2f7a568f3
No account linked to committer's email address
1 changed files with 50 additions and 21 deletions
  1. 50
    21
      Marlin/src/pins/rambo/pins_EINSY_RAMBO.h

+ 50
- 21
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h View File

@@ -136,27 +136,56 @@
136 136
 
137 137
 #ifndef FAN1_PIN
138 138
   #ifdef MK3_FAN_PINS
139
-    #define FAN1_PIN                           -1
139
+    #define FAN1_PIN                          -1
140 140
   #else
141
-    #define FAN1_PIN                            6
141
+    #define FAN1_PIN                           6
142 142
   #endif
143 143
 #endif
144 144
 
145
+/**
146
+ *             ------                           ------                           ------
147
+ *     84 PH2 | 1  2 | PH6  9          50 MISO | 1  2 | SCK  52          62 PK0 | 1  2 | PJ5 76
148
+ *     61 PF7 | 3  4 | PD5 82          72  PJ2 | 3  4 | SDSS 77          20 SDA | 3  4 | GND
149
+ *     59 PF5 | 5  6   PG4 70          14  TX3 | 5  6   MOSI 51          21 SCL | 5  6   RX2 16
150
+ *     85 PH7 | 7  8 | PG3 71          15  RX3 | 7  8 | RESET               GND | 7  8 | TX2 17
151
+ *        GND | 9 10 | 5V                  GND | 9 10 | PE3   5              5V | 9 10 | 5V
152
+ *             ------                           ------                           ------
153
+ *               P1                               P2                               P3
154
+ */
155
+
156
+#define EXP1_01_PIN                           84
157
+#define EXP1_02_PIN                            9
158
+#define EXP1_03_PIN                           61
159
+#define EXP1_04_PIN                           82
160
+#define EXP1_05_PIN                           59
161
+#define EXP1_06_PIN                           70
162
+#define EXP1_07_PIN                           85
163
+#define EXP1_08_PIN                           71
164
+
165
+#define EXP2_01_PIN                           50
166
+#define EXP2_02_PIN                           52
167
+#define EXP2_03_PIN                           72
168
+#define EXP2_04_PIN                           77
169
+#define EXP2_05_PIN                           14
170
+#define EXP2_06_PIN                           51
171
+#define EXP2_07_PIN                           15
172
+#define EXP2_08_PIN                           -1
173
+
145 174
 //
146 175
 // Misc. Functions
147 176
 //
148
-#define SDSS                                  77
177
+#define SDSS                         EXP2_04_PIN
149 178
 #define LED_PIN                               13
150 179
 
151 180
 #ifndef CASE_LIGHT_PIN
152
-  #define CASE_LIGHT_PIN                       9
181
+  #define CASE_LIGHT_PIN             EXP1_02_PIN
153 182
 #endif
154 183
 
155 184
 //
156 185
 // M3/M4/M5 - Spindle/Laser Control
157 186
 //
158 187
 // use P1 connector for spindle pins
159
-#define SPINDLE_LASER_PWM_PIN                  9  // Hardware PWM
188
+#define SPINDLE_LASER_PWM_PIN        EXP1_02_PIN  // Hardware PWM
160 189
 #define SPINDLE_LASER_ENA_PIN                 18  // Pullup!
161 190
 #define SPINDLE_DIR_PIN                       19
162 191
 
@@ -179,20 +208,20 @@
179 208
   #if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
180 209
 
181 210
     #if ENABLED(CR10_STOCKDISPLAY)
182
-      #define LCD_PINS_RS                     85
183
-      #define LCD_PINS_ENABLE                 71
184
-      #define LCD_PINS_D4                     70
185
-      #define BTN_EN1                         61
186
-      #define BTN_EN2                         59
211
+      #define LCD_PINS_RS            EXP1_07_PIN
212
+      #define LCD_PINS_ENABLE        EXP1_08_PIN
213
+      #define LCD_PINS_D4            EXP1_06_PIN
214
+      #define BTN_EN1                EXP1_03_PIN
215
+      #define BTN_EN2                EXP1_05_PIN
187 216
     #else
188
-      #define LCD_PINS_RS                     82
189
-      #define LCD_PINS_ENABLE                 61
190
-      #define LCD_PINS_D4                     59
191
-      #define LCD_PINS_D5                     70
192
-      #define LCD_PINS_D6                     85
193
-      #define LCD_PINS_D7                     71
194
-      #define BTN_EN1                         14
195
-      #define BTN_EN2                         72
217
+      #define LCD_PINS_RS            EXP1_04_PIN
218
+      #define LCD_PINS_ENABLE        EXP1_03_PIN
219
+      #define LCD_PINS_D4            EXP1_05_PIN
220
+      #define LCD_PINS_D5            EXP1_06_PIN
221
+      #define LCD_PINS_D6            EXP1_07_PIN
222
+      #define LCD_PINS_D7            EXP1_08_PIN
223
+      #define BTN_EN1                EXP2_05_PIN
224
+      #define BTN_EN2                EXP2_03_PIN
196 225
 
197 226
       #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
198 227
         #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
@@ -200,9 +229,9 @@
200 229
 
201 230
     #endif
202 231
 
203
-    #define BTN_ENC                            9  // AUX-2
204
-    #define BEEPER_PIN                        84  // AUX-4
205
-    #define SD_DETECT_PIN                     15
232
+    #define BTN_ENC                  EXP1_02_PIN  // P1
233
+    #define BEEPER_PIN               EXP1_01_PIN  // P1
234
+    #define SD_DETECT_PIN            EXP2_07_PIN
206 235
 
207 236
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
208 237
 #endif // HAS_WIRED_LCD

Loading…
Cancel
Save