mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Fix spacing, use single instances of similar pins
This commit is contained in:
parent
b22c87183f
commit
5bed2f351a
@ -98,33 +98,24 @@
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 5
|
||||
#define DOGLCD_CS 21
|
||||
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 42
|
||||
#define BTN_ENC 19
|
||||
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 38
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS 20
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 5
|
||||
#define DOGLCD_CS 21
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 42
|
||||
#else
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 16
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 6
|
||||
#define LCD_PINS_D4 16
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 6
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#endif
|
||||
|
||||
// Buttons are directly attached
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#define BTN_ENC 19
|
||||
|
||||
#define SD_DETECT_PIN 38
|
||||
|
||||
#endif
|
||||
#define BTN_ENC 19
|
||||
#define SD_DETECT_PIN 38
|
||||
|
||||
#else // !NEWPANEL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user