|
@@ -211,58 +211,77 @@
|
211
|
211
|
//
|
212
|
212
|
// LCDs and Controllers
|
213
|
213
|
//
|
214
|
|
-#define BEEPER_PIN 37
|
215
|
214
|
#define SD_DETECT_PIN 49
|
216
|
215
|
|
217
|
|
-#if ENABLED(FYSETC_MINI_12864)
|
218
|
|
- //
|
219
|
|
- // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
220
|
|
- //
|
221
|
|
- #define DOGLCD_A0 16
|
222
|
|
- #define DOGLCD_CS 17
|
223
|
|
-
|
224
|
|
- #if ENABLED(FYSETC_GENERIC_12864_1_1)
|
225
|
|
- #define LCD_BACKLIGHT_PIN 27
|
226
|
|
- #endif
|
227
|
|
-
|
228
|
|
- #define KILL_PIN 41
|
229
|
|
- #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
|
230
|
|
- // Seems to work best if left open.
|
231
|
|
-
|
232
|
|
- #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
233
|
|
- #ifndef RGB_LED_R_PIN
|
234
|
|
- #define RGB_LED_R_PIN 25
|
235
|
|
- #endif
|
236
|
|
- #ifndef RGB_LED_G_PIN
|
237
|
|
- #define RGB_LED_G_PIN 27
|
|
216
|
+#if ENABLED(FYSETC_242_OLED_12864)
|
|
217
|
+ #define BTN_EN1 37
|
|
218
|
+ #define BTN_EN2 29
|
|
219
|
+ #define BTN_ENC 35
|
|
220
|
+ #define BEEPER_PIN 31
|
|
221
|
+
|
|
222
|
+ #define LCD_PINS_DC 25
|
|
223
|
+ #define LCD_PINS_RS 33
|
|
224
|
+ #define DOGLCD_CS 16
|
|
225
|
+ #define DOGLCD_MOSI 23
|
|
226
|
+ #define DOGLCD_SCK 17
|
|
227
|
+ #define DOGLCD_A0 LCD_PINS_DC
|
|
228
|
+
|
|
229
|
+ #define KILL_PIN -1 // NC
|
|
230
|
+ #define NEOPIXEL_PIN 27
|
|
231
|
+
|
|
232
|
+#else
|
|
233
|
+ #define BEEPER_PIN 37
|
|
234
|
+
|
|
235
|
+ #if ENABLED(FYSETC_MINI_12864)
|
|
236
|
+ //
|
|
237
|
+ // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
|
238
|
+ //
|
|
239
|
+ #define DOGLCD_A0 16
|
|
240
|
+ #define DOGLCD_CS 17
|
|
241
|
+
|
|
242
|
+ #if ENABLED(FYSETC_GENERIC_12864_1_1)
|
|
243
|
+ #define LCD_BACKLIGHT_PIN 27
|
238
|
244
|
#endif
|
239
|
|
- #ifndef RGB_LED_B_PIN
|
240
|
|
- #define RGB_LED_B_PIN 29
|
|
245
|
+
|
|
246
|
+ #define KILL_PIN 41
|
|
247
|
+ #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
|
|
248
|
+ // Seems to work best if left open.
|
|
249
|
+
|
|
250
|
+ #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
|
251
|
+ #ifndef RGB_LED_R_PIN
|
|
252
|
+ #define RGB_LED_R_PIN 25
|
|
253
|
+ #endif
|
|
254
|
+ #ifndef RGB_LED_G_PIN
|
|
255
|
+ #define RGB_LED_G_PIN 27
|
|
256
|
+ #endif
|
|
257
|
+ #ifndef RGB_LED_B_PIN
|
|
258
|
+ #define RGB_LED_B_PIN 29
|
|
259
|
+ #endif
|
|
260
|
+ #elif ENABLED(FYSETC_MINI_12864_2_1)
|
|
261
|
+ #define NEOPIXEL_PIN 25
|
241
|
262
|
#endif
|
242
|
|
- #elif ENABLED(FYSETC_MINI_12864_2_1)
|
243
|
|
- #define NEOPIXEL_PIN 25
|
244
|
|
- #endif
|
245
|
263
|
|
246
|
|
-#elif HAS_GRAPHICAL_LCD
|
|
264
|
+ #elif HAS_GRAPHICAL_LCD
|
247
|
265
|
|
248
|
|
- #define LCD_PINS_RS 16
|
249
|
|
- #define LCD_PINS_ENABLE 17
|
250
|
|
- #define LCD_PINS_D4 23
|
251
|
|
- #define LCD_PINS_D5 25
|
252
|
|
- #define LCD_PINS_D6 27
|
253
|
|
- #define LCD_PINS_D7 29
|
|
266
|
+ #define LCD_PINS_RS 16
|
|
267
|
+ #define LCD_PINS_ENABLE 17
|
|
268
|
+ #define LCD_PINS_D4 23
|
|
269
|
+ #define LCD_PINS_D5 25
|
|
270
|
+ #define LCD_PINS_D6 27
|
|
271
|
+ #define LCD_PINS_D7 29
|
254
|
272
|
|
255
|
|
- #if ENABLED(MKS_MINI_12864)
|
256
|
|
- #define DOGLCD_CS 25
|
257
|
|
- #define DOGLCD_A0 27
|
258
|
|
- #endif
|
|
273
|
+ #if ENABLED(MKS_MINI_12864)
|
|
274
|
+ #define DOGLCD_CS 25
|
|
275
|
+ #define DOGLCD_A0 27
|
|
276
|
+ #endif
|
259
|
277
|
|
260
|
|
-#endif
|
|
278
|
+ #endif
|
261
|
279
|
|
262
|
|
-#if ENABLED(NEWPANEL)
|
263
|
|
- #define BTN_EN1 31
|
264
|
|
- #define BTN_EN2 33
|
265
|
|
- #define BTN_ENC 35
|
|
280
|
+ #if ENABLED(NEWPANEL)
|
|
281
|
+ #define BTN_EN1 31
|
|
282
|
+ #define BTN_EN2 33
|
|
283
|
+ #define BTN_ENC 35
|
|
284
|
+ #endif
|
266
|
285
|
#endif
|
267
|
286
|
|
268
|
287
|
#ifndef RGB_LED_R_PIN
|