Skip to content

Commit

Permalink
DWIN LCD pins for BTT SKR Mini V2
Browse files Browse the repository at this point in the history
  • Loading branch information
blazewicz committed Jul 3, 2021
1 parent 03a4697 commit 17b2dcb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Marlin/src/inc/Conditionals_LCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,11 @@
#if ENABLED(DWIN_CREALITY_LCD)
#define SERIAL_CATCHALL 0
#ifndef LCD_SERIAL_PORT
#define LCD_SERIAL_PORT 3 // Creality 4.x board
#if MB(BTT_SKR_MINI_E3_V2_0)
#define LCD_SERIAL_PORT 1
#else
#define LCD_SERIAL_PORT 3 // Creality 4.x board
#endif
#endif
#endif

Expand Down
23 changes: 22 additions & 1 deletion Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,28 @@
#define EXP1_3 PB7
#endif

#if HAS_WIRED_LCD
#if ENABLED(DWIN_CREALITY_LCD)
/**
* SKR Mini E3 V1.0, V1.2 SKR Mini E3 V2.0
* _____ _____
* (VCC) 5V | 1 2 | GND (GND) (VCC) 5V | 1 2 | GND (GND)
* (A) PB7 | 3 4 | PB8 (B) (A) PB15 | 3 4 | PB8 (B)
* PB9 | 5 6 PA10 (RX) PB9 | 5 6 PA10 (RX)
* RESET | 7 8 | PA9 (TX) RESET | 7 8 | PA9 (TX)
* (BEEP) PB6 | 9 10| PB5 (ENT) (BEEP) PA15 | 9 10| PB5 (ENT)
* ----- -----
* EXP1 EXP1
*
* Labels in parenthesis reflect labels printed on LCD board.
*/

#error "DWIN_CREALITY_LCD requires a custom cable, see diagram above this line. Comment out this line to continue."

#define BEEPER_PIN EXP1_9
#define BTN_EN1 EXP1_3
#define BTN_EN2 PB8
#define BTN_ENC PB5
#elif HAS_WIRED_LCD

#if ENABLED(CR10_STOCKDISPLAY)

Expand Down

0 comments on commit 17b2dcb

Please sign in to comment.