Fix Ender-2 display pins, add BTN_ENC (#16349)
This commit is contained in:
@ -529,7 +529,7 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS 25
|
||||
|
@ -90,7 +90,7 @@
|
||||
// requires jumpers on the SKR V1.1 board as documented here:
|
||||
// https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#else
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
@ -271,11 +271,35 @@
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS P1_21
|
||||
#define DOGLCD_A0 P1_22
|
||||
#define DOGLCD_SCK P0_15
|
||||
#define DOGLCD_MOSI P0_18
|
||||
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
|
||||
/**
|
||||
* Creality Ender-2 display pinout
|
||||
* _____
|
||||
* 5V | · · | GND
|
||||
* (MOSI) P1_23 | · · | P1_22 (LCD_CS)
|
||||
* (LCD_A0) P1_21 | · · | P1_20 (BTN_EN2)
|
||||
* RESET P1.19 | · · | P1_18 (BTN_EN1)
|
||||
* (BTN_ENC) P0_28 | · · | P1_30 (SCK)
|
||||
* -----
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#define BTN_EN1 P1_18
|
||||
#define BTN_EN2 P1_20
|
||||
#define BTN_ENC P0_28
|
||||
#define DOGLCD_CS P1_22
|
||||
#define DOGLCD_A0 P1_21
|
||||
#define DOGLCD_SCK P1_30
|
||||
#define DOGLCD_MOSI P1_23
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
|
@ -35,9 +35,9 @@
|
||||
|
||||
#include "pins_MELZI.h"
|
||||
|
||||
// For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
// option for the display in Configuration.h
|
||||
|
||||
//
|
||||
// For the stock CR-10 enable CR10_STOCKDISPLAY in Configuration.h
|
||||
//
|
||||
#undef LCD_SDSS
|
||||
#undef LED_PIN
|
||||
#undef LCD_PINS_RS
|
||||
|
@ -185,7 +185,7 @@
|
||||
#define LCD_PINS_ENABLE PB7
|
||||
#define LCD_PINS_D4 PB9
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
/** Creality Ender-2 display pinout
|
||||
* _____
|
||||
|
@ -138,7 +138,7 @@
|
||||
#define LCD_PINS_D7 PB5
|
||||
#define ADC_KEYPAD_PIN PA1 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
/** Creality Ender-2 display pinout
|
||||
* _____
|
||||
@ -163,7 +163,7 @@
|
||||
|
||||
#else
|
||||
|
||||
#error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, and MKS_MINI_12864 are currently supported on the BIGTREE_SKR_MINI_E3."
|
||||
#error "Only ZONESTAR_LCD, MKS_MINI_12864, ENDER2_STOCKDISPLAY, and CR10_STOCKDISPLAY are currently supported on the BIGTREE_SKR_MINI_E3."
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -251,7 +251,7 @@
|
||||
#define DOGLCD_SCK PB13
|
||||
#define DOGLCD_MOSI PB15
|
||||
|
||||
#else // !MKS_MINI_12864
|
||||
#else // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
|
||||
|
||||
#define LCD_PINS_D4 PF14
|
||||
#if ENABLED(ULTIPANEL)
|
||||
@ -260,7 +260,7 @@
|
||||
#define LCD_PINS_D7 PF13
|
||||
#endif
|
||||
|
||||
#endif // !MKS_MINI_12864
|
||||
#endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
|
||||
#endif
|
||||
|
||||
#ifndef ST7920_DELAY_1
|
||||
|
Reference in New Issue
Block a user