瀏覽代碼

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>
Gurmeet Athwal 3 年之前
父節點
當前提交
6851909f90
沒有連結到貢獻者的電子郵件帳戶。
共有 42 個檔案被更改,包括 191 行新增0 行删除
  1. 5
    0
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
  2. 5
    0
      Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
  3. 5
    0
      Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
  4. 5
    0
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
  5. 5
    0
      Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
  6. 5
    0
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
  7. 5
    0
      Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
  8. 4
    0
      Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
  9. 4
    0
      Marlin/src/pins/mega/pins_GT2560_REV_A.h
  10. 5
    0
      Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
  11. 4
    0
      Marlin/src/pins/rambo/pins_EINSY_RETRO.h
  12. 4
    0
      Marlin/src/pins/rambo/pins_MINIRAMBO.h
  13. 4
    0
      Marlin/src/pins/rambo/pins_RAMBO.h
  14. 4
    0
      Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
  15. 4
    0
      Marlin/src/pins/ramps/pins_RAMPS.h
  16. 5
    0
      Marlin/src/pins/ramps/pins_RAMPS_S_12.h
  17. 4
    0
      Marlin/src/pins/ramps/pins_TT_OSCAR.h
  18. 5
    0
      Marlin/src/pins/sam/pins_ARCHIM1.h
  19. 5
    0
      Marlin/src/pins/sam/pins_DUE3DOM.h
  20. 5
    0
      Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
  21. 4
    0
      Marlin/src/pins/sam/pins_RADDS.h
  22. 4
    0
      Marlin/src/pins/sam/pins_RAMPS_DUO.h
  23. 4
    0
      Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
  24. 4
    0
      Marlin/src/pins/sam/pins_RURAMPS4D_11.h
  25. 4
    0
      Marlin/src/pins/sam/pins_RURAMPS4D_13.h
  26. 4
    0
      Marlin/src/pins/samd/pins_RAMPS_144.h
  27. 4
    0
      Marlin/src/pins/sanguino/pins_ANET_10.h
  28. 5
    0
      Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
  29. 4
    0
      Marlin/src/pins/stm32f1/pins_CHITU3D.h
  30. 4
    0
      Marlin/src/pins/stm32f1/pins_FLY_MINI.h
  31. 5
    0
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3P.h
  32. 5
    0
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h
  33. 5
    0
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE3.h
  34. 5
    0
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h
  35. 5
    0
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h
  36. 4
    0
      Marlin/src/pins/stm32f1/pins_STM32F1R.h
  37. 4
    0
      Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
  38. 5
    0
      Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
  39. 5
    0
      Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
  40. 5
    0
      Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h
  41. 5
    0
      Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
  42. 5
    0
      Marlin/src/pins/stm32f4/pins_RUMBA32_common.h

+ 5
- 0
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h 查看文件

353
         #define LCD_PINS_D5         EXPA1_05_PIN
353
         #define LCD_PINS_D5         EXPA1_05_PIN
354
         #define LCD_PINS_D6         EXPA1_04_PIN
354
         #define LCD_PINS_D6         EXPA1_04_PIN
355
         #define LCD_PINS_D7         EXPA1_03_PIN
355
         #define LCD_PINS_D7         EXPA1_03_PIN
356
+
357
+        #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
358
+          #define BTN_ENC_EN         LCD_PINS_D7  // Detect the presence of the encoder
359
+        #endif
360
+
356
       #endif
361
       #endif
357
 
362
 
358
     #endif // !FYSETC_MINI_12864
363
     #endif // !FYSETC_MINI_12864

+ 5
- 0
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h 查看文件

136
   #define LCD_PINS_D5                      P0_22
136
   #define LCD_PINS_D5                      P0_22
137
   #define LCD_PINS_D6                      P1_29
137
   #define LCD_PINS_D6                      P1_29
138
   #define LCD_PINS_D7                      P1_28
138
   #define LCD_PINS_D7                      P1_28
139
+
140
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
141
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
142
+  #endif
143
+
139
 #endif
144
 #endif
140
 
145
 
141
 //
146
 //

+ 5
- 0
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h 查看文件

352
           #define LCD_PINS_D5              P0_17
352
           #define LCD_PINS_D5              P0_17
353
           #define LCD_PINS_D6              P1_00
353
           #define LCD_PINS_D6              P1_00
354
           #define LCD_PINS_D7              P1_22
354
           #define LCD_PINS_D7              P1_22
355
+
356
+          #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
357
+            #define BTN_ENC_EN       LCD_PINS_D7  // Detect the presence of the encoder
358
+          #endif
359
+
355
         #endif
360
         #endif
356
 
361
 
357
       #endif // !FYSETC_MINI_12864
362
       #endif // !FYSETC_MINI_12864

+ 5
- 0
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h 查看文件

420
       #define LCD_PINS_D5                  P1_17  // (71) ENET_MDIO
420
       #define LCD_PINS_D5                  P1_17  // (71) ENET_MDIO
421
       #define LCD_PINS_D6                  P1_14  // (73) ENET_RX_ER
421
       #define LCD_PINS_D6                  P1_14  // (73) ENET_RX_ER
422
       #define LCD_PINS_D7                  P1_10  // (75) ENET_RXD1
422
       #define LCD_PINS_D7                  P1_10  // (75) ENET_RXD1
423
+
424
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
425
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
426
+      #endif
427
+
423
     #endif
428
     #endif
424
   #endif
429
   #endif
425
 
430
 

+ 5
- 0
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h 查看文件

110
     #define BTN_ENC                        P1_30
110
     #define BTN_ENC                        P1_30
111
 
111
 
112
     #define SD_DETECT_PIN                  -1
112
     #define SD_DETECT_PIN                  -1
113
+
114
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
115
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
116
+    #endif
117
+
113
 #endif // IS_RRD_FG_SC
118
 #endif // IS_RRD_FG_SC

+ 5
- 0
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h 查看文件

175
       #endif
175
       #endif
176
       #define BEEPER_PIN                   P1_30  // (37) not 5V tolerant
176
       #define BEEPER_PIN                   P1_30  // (37) not 5V tolerant
177
       #define DOGLCD_CS                    P0_16  // (16)
177
       #define DOGLCD_CS                    P0_16  // (16)
178
+
179
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
180
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
181
+      #endif
182
+
178
     #endif
183
     #endif
179
 
184
 
180
     #if ENABLED(MINIPANEL)
185
     #if ENABLED(MINIPANEL)

+ 5
- 0
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h 查看文件

371
           #define LCD_PINS_D5              P0_17
371
           #define LCD_PINS_D5              P0_17
372
           #define LCD_PINS_D6              P1_00
372
           #define LCD_PINS_D6              P1_00
373
           #define LCD_PINS_D7              P1_22
373
           #define LCD_PINS_D7              P1_22
374
+
375
+          #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
376
+            #define BTN_ENC_EN       LCD_PINS_D7  // Detect the presence of the encoder
377
+          #endif
378
+
374
         #endif
379
         #endif
375
 
380
 
376
       #endif // !FYSETC_MINI_12864
381
       #endif // !FYSETC_MINI_12864

+ 4
- 0
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h 查看文件

119
 #define LCD_PINS_D6                           41
119
 #define LCD_PINS_D6                           41
120
 #define LCD_PINS_D7                           40
120
 #define LCD_PINS_D7                           40
121
 
121
 
122
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
123
+  #define BTN_ENC_EN                 LCD_PINS_D7  // Detect the presence of the encoder
124
+#endif
125
+
122
 //
126
 //
123
 // Beeper, SD Card, Encoder
127
 // Beeper, SD Card, Encoder
124
 //
128
 //

+ 4
- 0
Marlin/src/pins/mega/pins_GT2560_REV_A.h 查看文件

158
     #define LCD_PINS_D6                       20
158
     #define LCD_PINS_D6                       20
159
     #define LCD_PINS_D7                       19
159
     #define LCD_PINS_D7                       19
160
 
160
 
161
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
162
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
163
+    #endif
164
+
161
     #define SD_DETECT_PIN                     -1
165
     #define SD_DETECT_PIN                     -1
162
 
166
 
163
   #endif // !IS_NEWPANEL
167
   #endif // !IS_NEWPANEL

+ 5
- 0
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h 查看文件

181
       #define LCD_PINS_D7                     71
181
       #define LCD_PINS_D7                     71
182
       #define BTN_EN1                         14
182
       #define BTN_EN1                         14
183
       #define BTN_EN2                         72
183
       #define BTN_EN2                         72
184
+
185
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
186
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
187
+      #endif
188
+
184
     #endif
189
     #endif
185
 
190
 
186
     #define BTN_ENC                            9  // AUX-2
191
     #define BTN_ENC                            9  // AUX-2

+ 4
- 0
Marlin/src/pins/rambo/pins_EINSY_RETRO.h 查看文件

194
 
194
 
195
     #define SD_DETECT_PIN                     15
195
     #define SD_DETECT_PIN                     15
196
 
196
 
197
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
198
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
199
+    #endif
200
+
197
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
201
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
198
 
202
 
199
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
203
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE

+ 4
- 0
Marlin/src/pins/rambo/pins_MINIRAMBO.h 查看文件

187
 
187
 
188
     #endif // !MINIRAMBO_10A
188
     #endif // !MINIRAMBO_10A
189
 
189
 
190
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
191
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
192
+    #endif
193
+
190
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
194
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
191
 
195
 
192
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
196
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL

+ 4
- 0
Marlin/src/pins/rambo/pins_RAMBO.h 查看文件

228
 
228
 
229
     #endif // !VIKI2 && !miniVIKI
229
     #endif // !VIKI2 && !miniVIKI
230
 
230
 
231
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
232
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
233
+    #endif
234
+
231
   #else                                           // !IS_NEWPANEL - old style panel with shift register
235
   #else                                           // !IS_NEWPANEL - old style panel with shift register
232
 
236
 
233
     // No Beeper added
237
     // No Beeper added

+ 4
- 0
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h 查看文件

275
       #define DOGLCD_A0                       27
275
       #define DOGLCD_A0                       27
276
     #endif
276
     #endif
277
 
277
 
278
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
279
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
280
+    #endif
281
+
278
   #endif
282
   #endif
279
 
283
 
280
   #if IS_NEWPANEL
284
   #if IS_NEWPANEL

+ 4
- 0
Marlin/src/pins/ramps/pins_RAMPS.h 查看文件

512
 
512
 
513
   #endif
513
   #endif
514
 
514
 
515
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
516
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
517
+  #endif
518
+
515
   //
519
   //
516
   // LCD Display input pins
520
   // LCD Display input pins
517
   //
521
   //

+ 5
- 0
Marlin/src/pins/ramps/pins_RAMPS_S_12.h 查看文件

263
   #ifndef SD_DETECT_PIN
263
   #ifndef SD_DETECT_PIN
264
     #define SD_DETECT_PIN                     38
264
     #define SD_DETECT_PIN                     38
265
   #endif
265
   #endif
266
+  
267
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
268
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
269
+  #endif
270
+
266
 #endif
271
 #endif
267
 
272
 
268
 //
273
 //

+ 4
- 0
Marlin/src/pins/ramps/pins_TT_OSCAR.h 查看文件

350
 
350
 
351
   #endif
351
   #endif
352
 
352
 
353
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
354
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
355
+  #endif
356
+
353
   //
357
   //
354
   // LCD Display input pins
358
   // LCD Display input pins
355
   //
359
   //

+ 5
- 0
Marlin/src/pins/sam/pins_ARCHIM1.h 查看文件

198
     #define BTN_EN2                           13  // D13 PB27_TIOB0
198
     #define BTN_EN2                           13  // D13 PB27_TIOB0
199
     #define BTN_ENC                           16  // D16 PA13_TXD1
199
     #define BTN_ENC                           16  // D16 PA13_TXD1
200
   #endif // IS_NEWPANEL
200
   #endif // IS_NEWPANEL
201
+
202
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
203
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
204
+  #endif
205
+
201
 #endif // HAS_WIRED_LCD
206
 #endif // HAS_WIRED_LCD

+ 5
- 0
Marlin/src/pins/sam/pins_DUE3DOM.h 查看文件

168
 
168
 
169
     #define BEEPER_PIN                        -1
169
     #define BEEPER_PIN                        -1
170
   #endif // SPARK_FULL_GRAPHICS
170
   #endif // SPARK_FULL_GRAPHICS
171
+
172
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
173
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
174
+  #endif
175
+
171
 #endif // HAS_WIRED_LCD
176
 #endif // HAS_WIRED_LCD

+ 5
- 0
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h 查看文件

171
     #define DOGLCD_CS                         45
171
     #define DOGLCD_CS                         45
172
 
172
 
173
   #endif // SPARK_FULL_GRAPHICS
173
   #endif // SPARK_FULL_GRAPHICS
174
+
175
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
176
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
177
+  #endif
178
+
174
 #endif // HAS_WIRED_LCD
179
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/sam/pins_RADDS.h 查看文件

287
 
287
 
288
   #endif // SPARK_FULL_GRAPHICS
288
   #endif // SPARK_FULL_GRAPHICS
289
 
289
 
290
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
291
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
292
+  #endif
293
+
290
 #endif // HAS_WIRED_LCD
294
 #endif // HAS_WIRED_LCD
291
 
295
 
292
 #ifndef SDSS
296
 #ifndef SDSS

+ 4
- 0
Marlin/src/pins/sam/pins_RAMPS_DUO.h 查看文件

127
       #endif
127
       #endif
128
     #endif
128
     #endif
129
 
129
 
130
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
131
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
132
+    #endif
133
+
130
   #endif // IS_NEWPANEL
134
   #endif // IS_NEWPANEL
131
 
135
 
132
 #endif // HAS_WIRED_LCD
136
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h 查看文件

203
     #define DOGLCD_MISO                       74  // MISO_PIN
203
     #define DOGLCD_MISO                       74  // MISO_PIN
204
   #endif
204
   #endif
205
 
205
 
206
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
207
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
208
+  #endif
209
+
206
 #endif // HAS_WIRED_LCD
210
 #endif // HAS_WIRED_LCD
207
 
211
 
208
 #if HAS_TMC_UART
212
 #if HAS_TMC_UART

+ 4
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_11.h 查看文件

271
     #define BTN_ENC                           40
271
     #define BTN_ENC                           40
272
   #endif
272
   #endif
273
 
273
 
274
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
275
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
276
+  #endif
277
+
274
 #endif // HAS_WIRED_LCD
278
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_13.h 查看文件

253
     #define BTN_ENC                           40
253
     #define BTN_ENC                           40
254
   #endif
254
   #endif
255
 
255
 
256
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
257
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
258
+  #endif
259
+
256
 #endif // HAS_WIRED_LCD
260
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/samd/pins_RAMPS_144.h 查看文件

594
     #endif
594
     #endif
595
   #endif // IS_NEWPANEL
595
   #endif // IS_NEWPANEL
596
 
596
 
597
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
598
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
599
+  #endif
600
+
597
 #endif // HAS_WIRED_LCD
601
 #endif // HAS_WIRED_LCD
598
 
602
 
599
 //
603
 //

+ 4
- 0
Marlin/src/pins/sanguino/pins_ANET_10.h 查看文件

198
 
198
 
199
   #endif
199
   #endif
200
 
200
 
201
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
202
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
203
+  #endif
204
+
201
 #else
205
 #else
202
 
206
 
203
   #define SERVO0_PIN                          27
207
   #define SERVO0_PIN                          27

+ 5
- 0
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h 查看文件

179
         #define LCD_PINS_D5                 PB7
179
         #define LCD_PINS_D5                 PB7
180
         #define LCD_PINS_D6                 PC15
180
         #define LCD_PINS_D6                 PC15
181
         #define LCD_PINS_D7                 PC14
181
         #define LCD_PINS_D7                 PC14
182
+
183
+        #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
184
+          #define BTN_ENC_EN         LCD_PINS_D7  // Detect the presence of the encoder
185
+        #endif
186
+
182
       #endif
187
       #endif
183
 
188
 
184
     #endif // !FYSETC_MINI_12864
189
     #endif // !FYSETC_MINI_12864

+ 4
- 0
Marlin/src/pins/stm32f1/pins_CHITU3D.h 查看文件

283
     #endif
283
     #endif
284
   #endif // IS_NEWPANEL
284
   #endif // IS_NEWPANEL
285
 
285
 
286
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
287
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
288
+  #endif
289
+
286
 #endif // HAS_WIRED_LCD
290
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/stm32f1/pins_FLY_MINI.h 查看文件

154
 #define BTN_EN2                             PB3
154
 #define BTN_EN2                             PB3
155
 #define BTN_ENC                             PC13
155
 #define BTN_ENC                             PC13
156
 
156
 
157
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
158
+  #define BTN_ENC_EN                 LCD_PINS_D7  // Detect the presence of the encoder
159
+#endif
160
+
157
 //
161
 //
158
 // Filament runout
162
 // Filament runout
159
 //
163
 //

+ 5
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3P.h 查看文件

309
       #define LCD_PINS_D5                   PE15
309
       #define LCD_PINS_D5                   PE15
310
       #define LCD_PINS_D6                   PD11
310
       #define LCD_PINS_D6                   PD11
311
       #define LCD_PINS_D7                   PD10
311
       #define LCD_PINS_D7                   PD10
312
+
313
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
314
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
315
+      #endif
316
+
312
     #endif
317
     #endif
313
 
318
 
314
     #ifndef BOARD_ST7920_DELAY_1
319
     #ifndef BOARD_ST7920_DELAY_1

+ 5
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h 查看文件

160
       #define LCD_PINS_D5                   PA7
160
       #define LCD_PINS_D5                   PA7
161
       #define LCD_PINS_D6                   PC4
161
       #define LCD_PINS_D6                   PC4
162
       #define LCD_PINS_D7                   PC5
162
       #define LCD_PINS_D7                   PC5
163
+
164
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
165
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
166
+      #endif
167
+
163
     #endif
168
     #endif
164
 
169
 
165
   #endif // !MKS_MINI_12864
170
   #endif // !MKS_MINI_12864

+ 5
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE3.h 查看文件

129
       #define LCD_PINS_D5                   PA7
129
       #define LCD_PINS_D5                   PA7
130
       #define LCD_PINS_D6                   PC4
130
       #define LCD_PINS_D6                   PC4
131
       #define LCD_PINS_D7                   PC5
131
       #define LCD_PINS_D7                   PC5
132
+
133
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
134
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
135
+      #endif
136
+
132
     #endif
137
     #endif
133
 
138
 
134
   #endif // !MKS_MINI_12864
139
   #endif // !MKS_MINI_12864

+ 5
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h 查看文件

321
       #define LCD_PINS_D5                   PE15
321
       #define LCD_PINS_D5                   PE15
322
       #define LCD_PINS_D6                   PD11
322
       #define LCD_PINS_D6                   PD11
323
       #define LCD_PINS_D7                   PD10
323
       #define LCD_PINS_D7                   PD10
324
+
325
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
326
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
327
+      #endif
328
+
324
     #endif
329
     #endif
325
 
330
 
326
     #ifndef BOARD_ST7920_DELAY_1
331
     #ifndef BOARD_ST7920_DELAY_1

+ 5
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h 查看文件

258
       #define LCD_PINS_D5                   PF15
258
       #define LCD_PINS_D5                   PF15
259
       #define LCD_PINS_D6                   PF12
259
       #define LCD_PINS_D6                   PF12
260
       #define LCD_PINS_D7                   PF13
260
       #define LCD_PINS_D7                   PF13
261
+
262
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
263
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
264
+      #endif
265
+
261
     #endif
266
     #endif
262
 
267
 
263
   #endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
268
   #endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY

+ 4
- 0
Marlin/src/pins/stm32f1/pins_STM32F1R.h 查看文件

258
     #endif
258
     #endif
259
   #endif // IS_NEWPANEL
259
   #endif // IS_NEWPANEL
260
 
260
 
261
+  #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
262
+    #define BTN_ENC_EN               LCD_PINS_D7  // Detect the presence of the encoder
263
+  #endif
264
+
261
 #endif // HAS_WIRED_LCD
265
 #endif // HAS_WIRED_LCD

+ 4
- 0
Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h 查看文件

132
 #define DOGLCD_CS                    LCD_PINS_D5
132
 #define DOGLCD_CS                    LCD_PINS_D5
133
 #define DOGLCD_A0                    LCD_PINS_D6
133
 #define DOGLCD_A0                    LCD_PINS_D6
134
 
134
 
135
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
136
+  #define BTN_ENC_EN                 LCD_PINS_D7  // Detect the presence of the encoder
137
+#endif
138
+
135
 //
139
 //
136
 // Onboard SD support
140
 // Onboard SD support
137
 //
141
 //

+ 5
- 0
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h 查看文件

232
       #define LCD_PINS_D5                   PE11
232
       #define LCD_PINS_D5                   PE11
233
       #define LCD_PINS_D6                   PE12
233
       #define LCD_PINS_D6                   PE12
234
       #define LCD_PINS_D7                   PE13
234
       #define LCD_PINS_D7                   PE13
235
+
236
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
237
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
238
+      #endif
239
+
235
     #endif
240
     #endif
236
 
241
 
237
   #endif
242
   #endif

+ 5
- 0
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h 查看文件

389
       #define LCD_PINS_D5                   PG7
389
       #define LCD_PINS_D5                   PG7
390
       #define LCD_PINS_D6                   PG6
390
       #define LCD_PINS_D6                   PG6
391
       #define LCD_PINS_D7                   PG5
391
       #define LCD_PINS_D7                   PG5
392
+
393
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
394
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
395
+      #endif
396
+
392
     #endif
397
     #endif
393
 
398
 
394
   #endif
399
   #endif

+ 5
- 0
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h 查看文件

426
       #define LCD_PINS_D5           EXPA1_05_PIN
426
       #define LCD_PINS_D5           EXPA1_05_PIN
427
       #define LCD_PINS_D6           EXPA1_04_PIN
427
       #define LCD_PINS_D6           EXPA1_04_PIN
428
       #define LCD_PINS_D7           EXPA1_03_PIN
428
       #define LCD_PINS_D7           EXPA1_03_PIN
429
+
430
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
431
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
432
+      #endif
433
+
429
     #endif
434
     #endif
430
 
435
 
431
   #endif
436
   #endif

+ 5
- 0
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h 查看文件

256
       #define LCD_PINS_D5                   PC12
256
       #define LCD_PINS_D5                   PC12
257
       #define LCD_PINS_D6                   PD0
257
       #define LCD_PINS_D6                   PD0
258
       #define LCD_PINS_D7                   PD1
258
       #define LCD_PINS_D7                   PD1
259
+
260
+      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
261
+        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
262
+      #endif
263
+
259
     #endif
264
     #endif
260
 
265
 
261
   #endif
266
   #endif

+ 5
- 0
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h 查看文件

164
     #define LCD_PINS_D5                     PE13
164
     #define LCD_PINS_D5                     PE13
165
     #define LCD_PINS_D6                     PE14
165
     #define LCD_PINS_D6                     PE14
166
     #define LCD_PINS_D7                     PE15
166
     #define LCD_PINS_D7                     PE15
167
+
168
+    #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
169
+      #define BTN_ENC_EN             LCD_PINS_D7  // Detect the presence of the encoder
170
+    #endif
171
+
167
   #endif
172
   #endif
168
 
173
 
169
   // Alter timing for graphical display
174
   // Alter timing for graphical display

Loading…
取消
儲存