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:
		| @@ -179,6 +179,11 @@ | ||||
|         #define LCD_PINS_D5                 PB7 | ||||
|         #define LCD_PINS_D6                 PC15 | ||||
|         #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 // !FYSETC_MINI_12864 | ||||
|   | ||||
| @@ -283,4 +283,8 @@ | ||||
|     #endif | ||||
|   #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 | ||||
|   | ||||
| @@ -154,6 +154,10 @@ | ||||
| #define BTN_EN2                             PB3 | ||||
| #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 | ||||
| // | ||||
|   | ||||
| @@ -309,6 +309,11 @@ | ||||
|       #define LCD_PINS_D5                   PE15 | ||||
|       #define LCD_PINS_D6                   PD11 | ||||
|       #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 | ||||
|  | ||||
|     #ifndef BOARD_ST7920_DELAY_1 | ||||
|   | ||||
| @@ -160,6 +160,11 @@ | ||||
|       #define LCD_PINS_D5                   PA7 | ||||
|       #define LCD_PINS_D6                   PC4 | ||||
|       #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 // !MKS_MINI_12864 | ||||
|   | ||||
| @@ -129,6 +129,11 @@ | ||||
|       #define LCD_PINS_D5                   PA7 | ||||
|       #define LCD_PINS_D6                   PC4 | ||||
|       #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 // !MKS_MINI_12864 | ||||
|   | ||||
| @@ -321,6 +321,11 @@ | ||||
|       #define LCD_PINS_D5                   PE15 | ||||
|       #define LCD_PINS_D6                   PD11 | ||||
|       #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 | ||||
|  | ||||
|     #ifndef BOARD_ST7920_DELAY_1 | ||||
|   | ||||
| @@ -258,6 +258,11 @@ | ||||
|       #define LCD_PINS_D5                   PF15 | ||||
|       #define LCD_PINS_D6                   PF12 | ||||
|       #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 // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY | ||||
|   | ||||
| @@ -258,4 +258,8 @@ | ||||
|     #endif | ||||
|   #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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user