Skip to content

Commit 8f11428

Browse files
authored
📺 Melzi v4 with BTT SKR Mini E3 (MarlinFirmware#25321)
1 parent 3be967b commit 8f11428

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h

+33-2
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,46 @@
163163
#if ENABLED(CR10_STOCKDISPLAY)
164164

165165
#define BEEPER_PIN EXP1_01_PIN
166-
#define BTN_ENC EXP1_02_PIN
167166

167+
#define BTN_ENC EXP1_02_PIN
168168
#define BTN_EN1 EXP1_03_PIN
169169
#define BTN_EN2 EXP1_05_PIN
170170

171171
#define LCD_PINS_RS EXP1_07_PIN
172172
#define LCD_PINS_ENABLE EXP1_08_PIN
173173
#define LCD_PINS_D4 EXP1_06_PIN
174174

175+
#elif ENABLED(LCD_FOR_MELZI)
176+
177+
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
178+
#error "CAUTION! LCD for Melzi v4 display requires a custom cable. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
179+
#endif
180+
181+
/**
182+
* LCD for Melzi v4 needs a custom cable with reversed GND/5V pins; plugging in a standard cable may damage the board or LCD!
183+
* 1. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
184+
* 2. Swap pin 4 on the Melzi LCD to pin 7 on the SKR Mini E3 EXP1 connector (pin 4 on the SKR is a RESET and cannot be used)
185+
*
186+
* LCD for Melzi V4 SKR Mini E3 V2.0
187+
* ------ ------
188+
* LCD RS | 1 2 | EN1 LCD RS | 1 2 | EN1
189+
* LCD EN | 3 4 | EN2 LCD EN | 3 4 | OPEN (RESET)
190+
* LCD D4 | 5 6 | ENC LCD D4 | 5 6 | ENC
191+
* E-Stop | 7 8 | BEEP EN2 | 7 8 | BEEP
192+
* 5V | 9 10 | GND GND | 9 10 | 5V
193+
* ------ ------
194+
* EXP1 EXP1
195+
*/
196+
#define BEEPER_PIN EXP1_08_PIN
197+
198+
#define BTN_ENC EXP1_06_PIN
199+
#define BTN_EN1 EXP1_02_PIN
200+
#define BTN_EN2 EXP1_07_PIN
201+
202+
#define LCD_PINS_RS EXP1_01_PIN
203+
#define LCD_PINS_ENABLE EXP1_03_PIN
204+
#define LCD_PINS_D4 EXP1_05_PIN
205+
175206
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
176207

177208
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
@@ -306,7 +337,7 @@
306337
#define FORCE_SOFT_SPI
307338

308339
#else
309-
#error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, TFTGLCD_PANEL_(SPI|I2C), FYSETC_MINI_12864_2_1, MKS_MINI_12864_V3, and BTT_MINI_12864_V1 are currently supported on the BIGTREE_SKR_MINI_E3."
340+
#error "Only CR10_STOCKDISPLAY, LCD_FOR_MELZI, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, TFTGLCD_PANEL_(SPI|I2C), FYSETC_MINI_12864_2_1, MKS_MINI_12864_V3, and BTT_MINI_12864_V1 are currently supported on the BIGTREE_SKR_MINI_E3."
310341
#endif
311342

312343
#endif // HAS_WIRED_LCD

0 commit comments

Comments
 (0)