BTN_ENC_EN for many boards (#19890)

Enables CHECK_ENCODER_ACTIVE_SIGNAL for many more boards.

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
This commit is contained in:
Gurmeet Athwal 2020-11-21 13:17:04 +05:30 committed by Scott Lahteine
parent f3805edbd6
commit a95a41ef73
42 changed files with 191 additions and 0 deletions

View File

@ -353,6 +353,11 @@
#define LCD_PINS_D5 EXPA1_05_PIN #define LCD_PINS_D5 EXPA1_05_PIN
#define LCD_PINS_D6 EXPA1_04_PIN #define LCD_PINS_D6 EXPA1_04_PIN
#define LCD_PINS_D7 EXPA1_03_PIN #define LCD_PINS_D7 EXPA1_03_PIN
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !FYSETC_MINI_12864 #endif // !FYSETC_MINI_12864

View File

@ -136,6 +136,11 @@
#define LCD_PINS_D5 P0_22 #define LCD_PINS_D5 P0_22
#define LCD_PINS_D6 P1_29 #define LCD_PINS_D6 P1_29
#define LCD_PINS_D7 P1_28 #define LCD_PINS_D7 P1_28
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
// //

View File

@ -352,6 +352,11 @@
#define LCD_PINS_D5 P0_17 #define LCD_PINS_D5 P0_17
#define LCD_PINS_D6 P1_00 #define LCD_PINS_D6 P1_00
#define LCD_PINS_D7 P1_22 #define LCD_PINS_D7 P1_22
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !FYSETC_MINI_12864 #endif // !FYSETC_MINI_12864

View File

@ -420,6 +420,11 @@
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
#define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
#define LCD_PINS_D7 P1_10 // (75) ENET_RXD1 #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif #endif

View File

@ -110,4 +110,9 @@
#define BTN_ENC P1_30 #define BTN_ENC P1_30
#define SD_DETECT_PIN -1 #define SD_DETECT_PIN -1
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // IS_RRD_FG_SC #endif // IS_RRD_FG_SC

View File

@ -175,6 +175,11 @@
#endif #endif
#define BEEPER_PIN P1_30 // (37) not 5V tolerant #define BEEPER_PIN P1_30 // (37) not 5V tolerant
#define DOGLCD_CS P0_16 // (16) #define DOGLCD_CS P0_16 // (16)
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#if ENABLED(MINIPANEL) #if ENABLED(MINIPANEL)

View File

@ -371,6 +371,11 @@
#define LCD_PINS_D5 P0_17 #define LCD_PINS_D5 P0_17
#define LCD_PINS_D6 P1_00 #define LCD_PINS_D6 P1_00
#define LCD_PINS_D7 P1_22 #define LCD_PINS_D7 P1_22
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !FYSETC_MINI_12864 #endif // !FYSETC_MINI_12864

View File

@ -119,6 +119,10 @@
#define LCD_PINS_D6 41 #define LCD_PINS_D6 41
#define LCD_PINS_D7 40 #define LCD_PINS_D7 40
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
// //
// Beeper, SD Card, Encoder // Beeper, SD Card, Encoder
// //

View File

@ -158,6 +158,10 @@
#define LCD_PINS_D6 20 #define LCD_PINS_D6 20
#define LCD_PINS_D7 19 #define LCD_PINS_D7 19
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#define SD_DETECT_PIN -1 #define SD_DETECT_PIN -1
#endif // !IS_NEWPANEL #endif // !IS_NEWPANEL

View File

@ -181,6 +181,11 @@
#define LCD_PINS_D7 71 #define LCD_PINS_D7 71
#define BTN_EN1 14 #define BTN_EN1 14
#define BTN_EN2 72 #define BTN_EN2 72
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#define BTN_ENC 9 // AUX-2 #define BTN_ENC 9 // AUX-2

View File

@ -194,6 +194,10 @@
#define SD_DETECT_PIN 15 #define SD_DETECT_PIN 15
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE

View File

@ -187,6 +187,10 @@
#endif // !MINIRAMBO_10A #endif // !MINIRAMBO_10A
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL

View File

@ -228,6 +228,10 @@
#endif // !VIKI2 && !miniVIKI #endif // !VIKI2 && !miniVIKI
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#else // !IS_NEWPANEL - old style panel with shift register #else // !IS_NEWPANEL - old style panel with shift register
// No Beeper added // No Beeper added

View File

@ -275,6 +275,10 @@
#define DOGLCD_A0 27 #define DOGLCD_A0 27
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#if IS_NEWPANEL #if IS_NEWPANEL

View File

@ -512,6 +512,10 @@
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
// //
// LCD Display input pins // LCD Display input pins
// //

View File

@ -263,6 +263,11 @@
#ifndef SD_DETECT_PIN #ifndef SD_DETECT_PIN
#define SD_DETECT_PIN 38 #define SD_DETECT_PIN 38
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
// //

View File

@ -350,6 +350,10 @@
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
// //
// LCD Display input pins // LCD Display input pins
// //

View File

@ -198,4 +198,9 @@
#define BTN_EN2 13 // D13 PB27_TIOB0 #define BTN_EN2 13 // D13 PB27_TIOB0
#define BTN_ENC 16 // D16 PA13_TXD1 #define BTN_ENC 16 // D16 PA13_TXD1
#endif // IS_NEWPANEL #endif // IS_NEWPANEL
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -168,4 +168,9 @@
#define BEEPER_PIN -1 #define BEEPER_PIN -1
#endif // SPARK_FULL_GRAPHICS #endif // SPARK_FULL_GRAPHICS
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -171,4 +171,9 @@
#define DOGLCD_CS 45 #define DOGLCD_CS 45
#endif // SPARK_FULL_GRAPHICS #endif // SPARK_FULL_GRAPHICS
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -287,6 +287,10 @@
#endif // SPARK_FULL_GRAPHICS #endif // SPARK_FULL_GRAPHICS
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD
#ifndef SDSS #ifndef SDSS

View File

@ -127,6 +127,10 @@
#endif #endif
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // IS_NEWPANEL #endif // IS_NEWPANEL
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -203,6 +203,10 @@
#define DOGLCD_MISO 74 // MISO_PIN #define DOGLCD_MISO 74 // MISO_PIN
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@ -271,4 +271,8 @@
#define BTN_ENC 40 #define BTN_ENC 40
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -253,4 +253,8 @@
#define BTN_ENC 40 #define BTN_ENC 40
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -594,6 +594,10 @@
#endif #endif
#endif // IS_NEWPANEL #endif // IS_NEWPANEL
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD
// //

View File

@ -198,6 +198,10 @@
#endif #endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#else #else
#define SERVO0_PIN 27 #define SERVO0_PIN 27

View File

@ -179,6 +179,11 @@
#define LCD_PINS_D5 PB7 #define LCD_PINS_D5 PB7
#define LCD_PINS_D6 PC15 #define LCD_PINS_D6 PC15
#define LCD_PINS_D7 PC14 #define LCD_PINS_D7 PC14
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !FYSETC_MINI_12864 #endif // !FYSETC_MINI_12864

View File

@ -283,4 +283,8 @@
#endif #endif
#endif // IS_NEWPANEL #endif // IS_NEWPANEL
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -154,6 +154,10 @@
#define BTN_EN2 PB3 #define BTN_EN2 PB3
#define BTN_ENC PC13 #define BTN_ENC PC13
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
// //
// Filament runout // Filament runout
// //

View File

@ -309,6 +309,11 @@
#define LCD_PINS_D5 PE15 #define LCD_PINS_D5 PE15
#define LCD_PINS_D6 PD11 #define LCD_PINS_D6 PD11
#define LCD_PINS_D7 PD10 #define LCD_PINS_D7 PD10
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#ifndef BOARD_ST7920_DELAY_1 #ifndef BOARD_ST7920_DELAY_1

View File

@ -160,6 +160,11 @@
#define LCD_PINS_D5 PA7 #define LCD_PINS_D5 PA7
#define LCD_PINS_D6 PC4 #define LCD_PINS_D6 PC4
#define LCD_PINS_D7 PC5 #define LCD_PINS_D7 PC5
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !MKS_MINI_12864 #endif // !MKS_MINI_12864

View File

@ -129,6 +129,11 @@
#define LCD_PINS_D5 PA7 #define LCD_PINS_D5 PA7
#define LCD_PINS_D6 PC4 #define LCD_PINS_D6 PC4
#define LCD_PINS_D7 PC5 #define LCD_PINS_D7 PC5
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !MKS_MINI_12864 #endif // !MKS_MINI_12864

View File

@ -321,6 +321,11 @@
#define LCD_PINS_D5 PE15 #define LCD_PINS_D5 PE15
#define LCD_PINS_D6 PD11 #define LCD_PINS_D6 PD11
#define LCD_PINS_D7 PD10 #define LCD_PINS_D7 PD10
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#ifndef BOARD_ST7920_DELAY_1 #ifndef BOARD_ST7920_DELAY_1

View File

@ -258,6 +258,11 @@
#define LCD_PINS_D5 PF15 #define LCD_PINS_D5 PF15
#define LCD_PINS_D6 PF12 #define LCD_PINS_D6 PF12
#define LCD_PINS_D7 PF13 #define LCD_PINS_D7 PF13
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY #endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY

View File

@ -258,4 +258,8 @@
#endif #endif
#endif // IS_NEWPANEL #endif // IS_NEWPANEL
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // HAS_WIRED_LCD #endif // HAS_WIRED_LCD

View File

@ -132,6 +132,10 @@
#define DOGLCD_CS LCD_PINS_D5 #define DOGLCD_CS LCD_PINS_D5
#define DOGLCD_A0 LCD_PINS_D6 #define DOGLCD_A0 LCD_PINS_D6
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
// //
// Onboard SD support // Onboard SD support
// //

View File

@ -232,6 +232,11 @@
#define LCD_PINS_D5 PE11 #define LCD_PINS_D5 PE11
#define LCD_PINS_D6 PE12 #define LCD_PINS_D6 PE12
#define LCD_PINS_D7 PE13 #define LCD_PINS_D7 PE13
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif #endif

View File

@ -389,6 +389,11 @@
#define LCD_PINS_D5 PG7 #define LCD_PINS_D5 PG7
#define LCD_PINS_D6 PG6 #define LCD_PINS_D6 PG6
#define LCD_PINS_D7 PG5 #define LCD_PINS_D7 PG5
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif #endif

View File

@ -426,6 +426,11 @@
#define LCD_PINS_D5 EXPA1_05_PIN #define LCD_PINS_D5 EXPA1_05_PIN
#define LCD_PINS_D6 EXPA1_04_PIN #define LCD_PINS_D6 EXPA1_04_PIN
#define LCD_PINS_D7 EXPA1_03_PIN #define LCD_PINS_D7 EXPA1_03_PIN
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif #endif

View File

@ -256,6 +256,11 @@
#define LCD_PINS_D5 PC12 #define LCD_PINS_D5 PC12
#define LCD_PINS_D6 PD0 #define LCD_PINS_D6 PD0
#define LCD_PINS_D7 PD1 #define LCD_PINS_D7 PD1
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
#endif #endif

View File

@ -164,6 +164,11 @@
#define LCD_PINS_D5 PE13 #define LCD_PINS_D5 PE13
#define LCD_PINS_D6 PE14 #define LCD_PINS_D6 PE14
#define LCD_PINS_D7 PE15 #define LCD_PINS_D7 PE15
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif #endif
// Alter timing for graphical display // Alter timing for graphical display