瀏覽代碼

Use LCD conditionals in pins files (#14428)

Scott Lahteine 6 年之前
父節點
當前提交
7e16835c83
沒有連結到貢獻者的電子郵件帳戶。
共有 51 個檔案被更改,包括 194 行新增204 行删除
  1. 1
    1
      Marlin/src/Marlin.cpp
  2. 15
    8
      Marlin/src/pins/pins.h
  3. 1
    1
      Marlin/src/pins/pins_3DRAG.h
  4. 1
    1
      Marlin/src/pins/pins_ANET_10.h
  5. 2
    2
      Marlin/src/pins/pins_ARCHIM1.h
  6. 2
    2
      Marlin/src/pins/pins_ARCHIM2.h
  7. 2
    2
      Marlin/src/pins/pins_AZTEEG_X5_MINI.h
  8. 2
    2
      Marlin/src/pins/pins_BEAST.h
  9. 2
    2
      Marlin/src/pins/pins_BIGTREE_SKR_MINI_V1_1.h
  10. 2
    2
      Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h
  11. 5
    5
      Marlin/src/pins/pins_BIQU_B300_V1.0.h
  12. 3
    3
      Marlin/src/pins/pins_BIQU_BQ111_A4.h
  13. 1
    1
      Marlin/src/pins/pins_BIQU_SKR_V1.1.h
  14. 2
    2
      Marlin/src/pins/pins_CHITU3D.h
  15. 2
    2
      Marlin/src/pins/pins_COHESION3D_MINI.h
  16. 2
    2
      Marlin/src/pins/pins_COHESION3D_REMIX.h
  17. 2
    2
      Marlin/src/pins/pins_DUE3DOM.h
  18. 2
    2
      Marlin/src/pins/pins_DUE3DOM_MINI.h
  19. 1
    1
      Marlin/src/pins/pins_DUPLICATOR_I3_PLUS.h
  20. 2
    2
      Marlin/src/pins/pins_EINSY_RAMBO.h
  21. 2
    2
      Marlin/src/pins/pins_EINSY_RETRO.h
  22. 1
    1
      Marlin/src/pins/pins_FYSETC_AIO_II.h
  23. 1
    1
      Marlin/src/pins/pins_FYSETC_CHEETAH.h
  24. 2
    2
      Marlin/src/pins/pins_GT2560_REV_A.h
  25. 2
    2
      Marlin/src/pins/pins_GTM32_PRO_VB.h
  26. 1
    1
      Marlin/src/pins/pins_MEGATRONICS.h
  27. 2
    2
      Marlin/src/pins/pins_MIGHTYBOARD_REVE.h
  28. 2
    2
      Marlin/src/pins/pins_MINIRAMBO.h
  29. 1
    1
      Marlin/src/pins/pins_MKS_SBASE.h
  30. 2
    2
      Marlin/src/pins/pins_MKS_SGEN_L.h
  31. 1
    1
      Marlin/src/pins/pins_PRINTRBOARD.h
  32. 1
    1
      Marlin/src/pins/pins_PRINTRBOARD_REVF.h
  33. 2
    2
      Marlin/src/pins/pins_RADDS.h
  34. 2
    2
      Marlin/src/pins/pins_RAMBO.h
  35. 2
    2
      Marlin/src/pins/pins_RAMPS.h
  36. 2
    2
      Marlin/src/pins/pins_RAMPS_DUO.h
  37. 2
    2
      Marlin/src/pins/pins_RAMPS_FD_V1.h
  38. 2
    2
      Marlin/src/pins/pins_RAMPS_LINUX.h
  39. 2
    2
      Marlin/src/pins/pins_RAMPS_RE_ARM.h
  40. 2
    2
      Marlin/src/pins/pins_RURAMPS4D_11.h
  41. 2
    2
      Marlin/src/pins/pins_RURAMPS4D_13.h
  42. 5
    5
      Marlin/src/pins/pins_SANGUINOLOLU_11.h
  43. 1
    1
      Marlin/src/pins/pins_SILVER_GATE.h
  44. 2
    2
      Marlin/src/pins/pins_STM32F1R.h
  45. 2
    2
      Marlin/src/pins/pins_STM3R_MINI.h
  46. 1
    1
      Marlin/src/pins/pins_TEENSY35_36.h
  47. 1
    1
      Marlin/src/pins/pins_TEENSYLU.h
  48. 2
    2
      Marlin/src/pins/pins_TRIGORILLA_14.h
  49. 2
    2
      Marlin/src/pins/pins_ULTIMAKER.h
  50. 89
    106
      Marlin/src/pins/pins_ULTIMAKER_OLD.h
  51. 1
    1
      buildroot/share/tests/megaatmega2560-tests

+ 1
- 1
Marlin/src/Marlin.cpp 查看文件

1093
     init_closedloop();
1093
     init_closedloop();
1094
   #endif
1094
   #endif
1095
 
1095
 
1096
-  #if ENABLED(INIT_SDCARD_ON_BOOT) && DISABLED(ULTRA_LCD)
1096
+  #if ENABLED(INIT_SDCARD_ON_BOOT) && !HAS_SPI_LCD
1097
     card.beginautostart();
1097
     card.beginautostart();
1098
   #endif
1098
   #endif
1099
 
1099
 

+ 15
- 8
Marlin/src/pins/pins.h 查看文件

878
 #ifndef LCD_PINS_D4
878
 #ifndef LCD_PINS_D4
879
   #define LCD_PINS_D4 -1
879
   #define LCD_PINS_D4 -1
880
 #endif
880
 #endif
881
-#ifndef LCD_PINS_D5
882
-  #define LCD_PINS_D5 -1
883
-#endif
884
-#ifndef LCD_PINS_D6
885
-  #define LCD_PINS_D6 -1
886
-#endif
887
-#ifndef LCD_PINS_D7
888
-  #define LCD_PINS_D7 -1
881
+
882
+#if HAS_CHARACTER_LCD
883
+  #ifndef LCD_PINS_D5
884
+    #define LCD_PINS_D5 -1
885
+  #endif
886
+  #ifndef LCD_PINS_D6
887
+    #define LCD_PINS_D6 -1
888
+  #endif
889
+  #ifndef LCD_PINS_D7
890
+    #define LCD_PINS_D7 -1
891
+  #endif
892
+#else
893
+  #undef LCD_PINS_D5
894
+  #undef LCD_PINS_D6
895
+  #undef LCD_PINS_D7
889
 #endif
896
 #endif
890
 
897
 
891
 /**
898
 /**

+ 1
- 1
Marlin/src/pins/pins_3DRAG.h 查看文件

103
 
103
 
104
   #define BEEPER_PIN       33
104
   #define BEEPER_PIN       33
105
 
105
 
106
-#endif // ULTRA_LCD && NEWPANEL
106
+#endif // HAS_SPI_LCD && NEWPANEL
107
 
107
 
108
 /**
108
 /**
109
  *  M3/M4/M5 - Spindle/Laser Control
109
  *  M3/M4/M5 - Spindle/Laser Control

+ 1
- 1
Marlin/src/pins/pins_ANET_10.h 查看文件

151
  *  REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
151
  *  REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
152
  */
152
  */
153
 
153
 
154
-#if ENABLED(ULTRA_LCD)
154
+#if HAS_SPI_LCD
155
   #define LCD_SDSS           28
155
   #define LCD_SDSS           28
156
   #if ENABLED(ADC_KEYPAD)
156
   #if ENABLED(ADC_KEYPAD)
157
     #define SERVO0_PIN       27   // free for BLTouch/3D-Touch
157
     #define SERVO0_PIN       27   // free for BLTouch/3D-Touch

+ 2
- 2
Marlin/src/pins/pins_ARCHIM1.h 查看文件

175
 //
175
 //
176
 // LCD / Controller
176
 // LCD / Controller
177
 //
177
 //
178
-#if ENABLED(ULTRA_LCD)
178
+#if HAS_SPI_LCD
179
   #define BEEPER_PIN       23   // D24 PA15_CTS1
179
   #define BEEPER_PIN       23   // D24 PA15_CTS1
180
   #define LCD_PINS_RS      17   // D17 PA12_RXD1
180
   #define LCD_PINS_RS      17   // D17 PA12_RXD1
181
   #define LCD_PINS_ENABLE  24   // D23 PA14_RTS1
181
   #define LCD_PINS_ENABLE  24   // D23 PA14_RTS1
192
     #define BTN_EN2        13   // D13 PB27_TIOB0
192
     #define BTN_EN2        13   // D13 PB27_TIOB0
193
     #define BTN_ENC        16   // D16 PA13_TXD1
193
     #define BTN_ENC        16   // D16 PA13_TXD1
194
   #endif // NEWPANEL
194
   #endif // NEWPANEL
195
-#endif // ULTRA_LCD
195
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_ARCHIM2.h 查看文件

224
 //
224
 //
225
 // LCD / Controller
225
 // LCD / Controller
226
 //
226
 //
227
-#if ENABLED(ULTRA_LCD)
227
+#if HAS_SPI_LCD
228
   #define BEEPER_PIN       23   // D24 PA15_CTS1
228
   #define BEEPER_PIN       23   // D24 PA15_CTS1
229
   #define LCD_PINS_RS      17   // D17 PA12_RXD1
229
   #define LCD_PINS_RS      17   // D17 PA12_RXD1
230
   #define LCD_PINS_ENABLE  24   // D23 PA14_RTS1
230
   #define LCD_PINS_ENABLE  24   // D23 PA14_RTS1
241
     #define BTN_EN2        13   // D13 PB27_TIOB0
241
     #define BTN_EN2        13   // D13 PB27_TIOB0
242
     #define BTN_ENC        16   // D16 PA13_TXD1 // the click
242
     #define BTN_ENC        16   // D16 PA13_TXD1 // the click
243
   #endif // NEWPANEL
243
   #endif // NEWPANEL
244
-#endif // ULTRA_LCD
244
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_AZTEEG_X5_MINI.h 查看文件

108
 //
108
 //
109
 // Display
109
 // Display
110
 //
110
 //
111
-#if ENABLED(ULTRA_LCD)
111
+#if HAS_SPI_LCD
112
 
112
 
113
   #if ENABLED(CR10_STOCKDISPLAY)
113
   #if ENABLED(CR10_STOCKDISPLAY)
114
 
114
 
184
 
184
 
185
   #endif
185
   #endif
186
 
186
 
187
-#endif // ULTRA_LCD
187
+#endif // HAS_SPI_LCD
188
 
188
 
189
 //
189
 //
190
 // SD Support
190
 // SD Support

+ 2
- 2
Marlin/src/pins/pins_BEAST.h 查看文件

120
 //
120
 //
121
 // LCD Pins
121
 // LCD Pins
122
 //
122
 //
123
-#if ENABLED(ULTRA_LCD)
123
+#if HAS_SPI_LCD
124
 
124
 
125
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
125
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
126
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
126
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
282
     #endif
282
     #endif
283
   #endif // NEWPANEL
283
   #endif // NEWPANEL
284
 
284
 
285
-#endif // ULTRA_LCD
285
+#endif // HAS_SPI_LCD
286
 
286
 
287
 #define U_MIN_PIN          -1
287
 #define U_MIN_PIN          -1
288
 #define V_MIN_PIN          -1
288
 #define V_MIN_PIN          -1

+ 2
- 2
Marlin/src/pins/pins_BIGTREE_SKR_MINI_V1_1.h 查看文件

102
  *                EXP2                                              EXP1
102
  *                EXP2                                              EXP1
103
  */
103
  */
104
 
104
 
105
-#if ENABLED(ULTRA_LCD)
105
+#if HAS_SPI_LCD
106
   #define BEEPER_PIN       PC10
106
   #define BEEPER_PIN       PC10
107
   #define BTN_ENC          PC11
107
   #define BTN_ENC          PC11
108
   #define LCD_PINS_RS      PC12
108
   #define LCD_PINS_RS      PC12
152
 
152
 
153
   #endif // !FYSETC_MINI_12864
153
   #endif // !FYSETC_MINI_12864
154
 
154
 
155
-#endif // ULTRA_LCD
155
+#endif // HAS_SPI_LCD
156
 
156
 
157
 //
157
 //
158
 // SD Card
158
 // SD Card

+ 2
- 2
Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h 查看文件

179
 |                ̄ ̄                                                ̄ ̄
179
 |                ̄ ̄                                                ̄ ̄
180
 |               EXP2                                              EXP1
180
 |               EXP2                                              EXP1
181
 */
181
 */
182
-#if ENABLED(ULTRA_LCD)
182
+#if HAS_SPI_LCD
183
   #define BEEPER_PIN       P1_30   // (37) not 5V tolerant
183
   #define BEEPER_PIN       P1_30   // (37) not 5V tolerant
184
   #define BTN_ENC          P0_28   // (58) open-drain
184
   #define BTN_ENC          P0_28   // (58) open-drain
185
 
185
 
249
 
249
 
250
   #endif
250
   #endif
251
 
251
 
252
-#endif // ULTRA_LCD
252
+#endif // HAS_SPI_LCD
253
 
253
 
254
 //
254
 //
255
 // SD Support
255
 // SD Support

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

119
  * for the onboard SD card, and a chip select signal is not provided for the remote
119
  * for the onboard SD card, and a chip select signal is not provided for the remote
120
  * SD card.
120
  * SD card.
121
  */
121
  */
122
-#if ENABLED(ULTRA_LCD)
122
+#if HAS_SPI_LCD
123
 
123
 
124
   #define BEEPER_PIN       P1_31   // EXP1-1
124
   #define BEEPER_PIN       P1_31   // EXP1-1
125
 
125
 
132
   #define LCD_PINS_ENABLE  P0_18   // (MOSI) EXP1-3
132
   #define LCD_PINS_ENABLE  P0_18   // (MOSI) EXP1-3
133
   #define LCD_PINS_D4      P0_15   // (SCK)  EXP1-5
133
   #define LCD_PINS_D4      P0_15   // (SCK)  EXP1-5
134
 
134
 
135
-  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && DISABLED(DOGLCD)
136
-    #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
135
+  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
136
+    #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
137
   #endif
137
   #endif
138
 
138
 
139
   #if ENABLED(SDSUPPORT)
139
   #if ENABLED(SDSUPPORT)
140
-    #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
140
+    #error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
141
   #endif
141
   #endif
142
 
142
 
143
-#endif // ULTRA_LCD
143
+#endif // HAS_SPI_LCD
144
 
144
 
145
 /**
145
 /**
146
  * SD Card Reader
146
  * SD Card Reader

+ 3
- 3
Marlin/src/pins/pins_BIQU_BQ111_A4.h 查看文件

99
  * for the onboard SD card, and a chip select signal is not provided for the remote
99
  * for the onboard SD card, and a chip select signal is not provided for the remote
100
  * SD card.
100
  * SD card.
101
  */
101
  */
102
-#if ENABLED(ULTRA_LCD)
102
+#if HAS_SPI_LCD
103
 
103
 
104
   #define BEEPER_PIN          P1_31   // EXP1-1
104
   #define BEEPER_PIN          P1_31   // EXP1-1
105
 
105
 
112
   #define LCD_PINS_ENABLE     P0_18   // (MOSI) EXP1-3
112
   #define LCD_PINS_ENABLE     P0_18   // (MOSI) EXP1-3
113
   #define LCD_PINS_D4         P0_15   // (SCK)  EXP1-5
113
   #define LCD_PINS_D4         P0_15   // (SCK)  EXP1-5
114
 
114
 
115
-  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && DISABLED(DOGLCD)
115
+  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
116
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
116
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
117
   #endif
117
   #endif
118
 
118
 
120
     #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
120
     #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
121
   #endif
121
   #endif
122
 
122
 
123
-#endif // ULTRA_LCD
123
+#endif // HAS_SPI_LCD
124
 
124
 
125
 
125
 
126
 /**
126
 /**

+ 1
- 1
Marlin/src/pins/pins_BIQU_SKR_V1.1.h 查看文件

94
  * by redrawing the screen after SD card accesses.
94
  * by redrawing the screen after SD card accesses.
95
  */
95
  */
96
 
96
 
97
-#if ENABLED(ULTRA_LCD)
97
+#if HAS_SPI_LCD
98
   #define BEEPER_PIN       P1_30
98
   #define BEEPER_PIN       P1_30
99
   #define BTN_EN1          P3_26
99
   #define BTN_EN1          P3_26
100
   #define BTN_EN2          P3_25
100
   #define BTN_EN2          P3_25

+ 2
- 2
Marlin/src/pins/pins_CHITU3D.h 查看文件

119
 //
119
 //
120
 // LCD Pins
120
 // LCD Pins
121
 //
121
 //
122
-#if ENABLED(ULTRA_LCD)
122
+#if HAS_SPI_LCD
123
 
123
 
124
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
124
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
125
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
125
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
280
     #endif
280
     #endif
281
   #endif // NEWPANEL
281
   #endif // NEWPANEL
282
 
282
 
283
-#endif // ULTRA_LCD
283
+#endif // HAS_SPI_LCD
284
 
284
 
285
 #define U_MIN_PIN          -1
285
 #define U_MIN_PIN          -1
286
 #define V_MIN_PIN          -1
286
 #define V_MIN_PIN          -1

+ 2
- 2
Marlin/src/pins/pins_COHESION3D_MINI.h 查看文件

135
 // connector are shared with the onboard SD card, and Marlin does not support reading
135
 // connector are shared with the onboard SD card, and Marlin does not support reading
136
 // G-code files from the onboard SD card.
136
 // G-code files from the onboard SD card.
137
 //
137
 //
138
-#if ENABLED(ULTRA_LCD)
138
+#if HAS_SPI_LCD
139
 
139
 
140
   #define BEEPER_PIN       P0_27   // EXP2-7 - open drain
140
   #define BEEPER_PIN       P0_27   // EXP2-7 - open drain
141
 
141
 
154
     #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
154
     #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
155
   #endif
155
   #endif
156
 
156
 
157
-#endif // ULTRA_LCD
157
+#endif // HAS_SPI_LCD
158
 
158
 
159
 //
159
 //
160
 // Ethernet pins
160
 // Ethernet pins

+ 2
- 2
Marlin/src/pins/pins_COHESION3D_REMIX.h 查看文件

192
     #define NEOPIXEL_PIN  P1_16   // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
192
     #define NEOPIXEL_PIN  P1_16   // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
193
   #endif
193
   #endif
194
 
194
 
195
-#elif ENABLED(ULTRA_LCD)
195
+#elif HAS_SPI_LCD
196
 
196
 
197
   #define BEEPER_PIN      P1_31   // EXP1-1
197
   #define BEEPER_PIN      P1_31   // EXP1-1
198
   //#define SD_DETECT_PIN P0_27   // EXP2-7
198
   //#define SD_DETECT_PIN P0_27   // EXP2-7
208
 
208
 
209
   #define KILL_PIN        P2_11   // EXP2-10
209
   #define KILL_PIN        P2_11   // EXP2-10
210
 
210
 
211
-#endif // ULTRA_LCD
211
+#endif // HAS_SPI_LCD
212
 
212
 
213
 //
213
 //
214
 // SD Support
214
 // SD Support

+ 2
- 2
Marlin/src/pins/pins_DUE3DOM.h 查看文件

112
 //
112
 //
113
 // LCD / Controller
113
 // LCD / Controller
114
 //
114
 //
115
-#if ENABLED(ULTRA_LCD)
115
+#if HAS_SPI_LCD
116
 
116
 
117
   #define LCD_PINS_RS       42
117
   #define LCD_PINS_RS       42
118
   #define LCD_PINS_ENABLE   43
118
   #define LCD_PINS_ENABLE   43
167
 
167
 
168
     #define BEEPER_PIN      -1
168
     #define BEEPER_PIN      -1
169
   #endif // SPARK_FULL_GRAPHICS
169
   #endif // SPARK_FULL_GRAPHICS
170
-#endif // ULTRA_LCD
170
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_DUE3DOM_MINI.h 查看文件

104
 //
104
 //
105
 // LCD / Controller
105
 // LCD / Controller
106
 //
106
 //
107
-#if ENABLED(ULTRA_LCD)
107
+#if HAS_SPI_LCD
108
 
108
 
109
   #define LCD_PINS_RS       42
109
   #define LCD_PINS_RS       42
110
   #define LCD_PINS_ENABLE   43
110
   #define LCD_PINS_ENABLE   43
170
     #define DOGLCD_CS       45
170
     #define DOGLCD_CS       45
171
 
171
 
172
   #endif // SPARK_FULL_GRAPHICS
172
   #endif // SPARK_FULL_GRAPHICS
173
-#endif // ULTRA_LCD
173
+#endif // HAS_SPI_LCD

+ 1
- 1
Marlin/src/pins/pins_DUPLICATOR_I3_PLUS.h 查看文件

86
 //
86
 //
87
 // LCDs and Controllers
87
 // LCDs and Controllers
88
 //
88
 //
89
-#if ENABLED(ULTRA_LCD)
89
+#if HAS_SPI_LCD
90
   #if ENABLED(ZONESTAR_LCD)
90
   #if ENABLED(ZONESTAR_LCD)
91
     #define LCD_PINS_RS        2
91
     #define LCD_PINS_RS        2
92
     #define LCD_PINS_ENABLE   36
92
     #define LCD_PINS_ENABLE   36

+ 2
- 2
Marlin/src/pins/pins_EINSY_RAMBO.h 查看文件

148
 //
148
 //
149
 // LCD / Controller
149
 // LCD / Controller
150
 //
150
 //
151
-#if ENABLED(ULTRA_LCD)
151
+#if HAS_SPI_LCD
152
 
152
 
153
   #define KILL_PIN         32
153
   #define KILL_PIN         32
154
 
154
 
176
     #define SD_DETECT_PIN     15
176
     #define SD_DETECT_PIN     15
177
 
177
 
178
   #endif // NEWPANEL
178
   #endif // NEWPANEL
179
-#endif // ULTRA_LCD
179
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_EINSY_RETRO.h 查看文件

162
 //
162
 //
163
 // LCD / Controller
163
 // LCD / Controller
164
 //
164
 //
165
-#if ENABLED(ULTRA_LCD)
165
+#if HAS_SPI_LCD
166
 
166
 
167
   #define KILL_PIN         32
167
   #define KILL_PIN         32
168
 
168
 
190
     #define SD_DETECT_PIN     15
190
     #define SD_DETECT_PIN     15
191
 
191
 
192
   #endif // NEWPANEL
192
   #endif // NEWPANEL
193
-#endif // ULTRA_LCD
193
+#endif // HAS_SPI_LCD

+ 1
- 1
Marlin/src/pins/pins_FYSETC_AIO_II.h 查看文件

121
 //
121
 //
122
 // LCD Pins
122
 // LCD Pins
123
 //
123
 //
124
-#if ENABLED(ULTRA_LCD)
124
+#if HAS_SPI_LCD
125
 
125
 
126
   #define BEEPER_PIN       PC9
126
   #define BEEPER_PIN       PC9
127
 
127
 

+ 1
- 1
Marlin/src/pins/pins_FYSETC_CHEETAH.h 查看文件

96
 //
96
 //
97
 // LCD Pins
97
 // LCD Pins
98
 //
98
 //
99
-#if ENABLED(ULTRA_LCD)
99
+#if HAS_SPI_LCD
100
 
100
 
101
   #define BEEPER_PIN       PC9
101
   #define BEEPER_PIN       PC9
102
 
102
 

+ 2
- 2
Marlin/src/pins/pins_GT2560_REV_A.h 查看文件

95
 #define SUICIDE_PIN        54   // Must be enabled at startup to keep power flowing
95
 #define SUICIDE_PIN        54   // Must be enabled at startup to keep power flowing
96
 #define KILL_PIN           -1
96
 #define KILL_PIN           -1
97
 
97
 
98
-#if ENABLED(ULTRA_LCD)
98
+#if HAS_SPI_LCD
99
 
99
 
100
   #define BEEPER_PIN       18
100
   #define BEEPER_PIN       18
101
 
101
 
138
 
138
 
139
   #endif // !NEWPANEL
139
   #endif // !NEWPANEL
140
 
140
 
141
-#endif // ULTRA_LCD
141
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_GTM32_PRO_VB.h 查看文件

108
 //
108
 //
109
 // LCD / Controller
109
 // LCD / Controller
110
 //
110
 //
111
-#if ENABLED(ULTRA_LCD)
111
+#if HAS_SPI_LCD
112
 
112
 
113
   #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
113
   #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
114
     #define LCD_PINS_RS    PE6   // CS chip select /SS chip slave select
114
     #define LCD_PINS_RS    PE6   // CS chip select /SS chip slave select
142
   //#define LCD_PINS_D14   PD9   // RXD3
142
   //#define LCD_PINS_D14   PD9   // RXD3
143
   //#define LCD_PINS_D13   PD8   // TXD3
143
   //#define LCD_PINS_D13   PD8   // TXD3
144
 
144
 
145
-#endif // ULTRA_LCD
145
+#endif // HAS_SPI_LCD
146
 
146
 
147
 //
147
 //
148
 // SPI2 on LCD conn
148
 // SPI2 on LCD conn

+ 1
- 1
Marlin/src/pins/pins_MEGATRONICS.h 查看文件

120
 
120
 
121
   #define SD_DETECT_PIN   -1   // RAMPS doesn't use this
121
   #define SD_DETECT_PIN   -1   // RAMPS doesn't use this
122
 
122
 
123
-#endif // ULTRA_LCD && NEWPANEL
123
+#endif // HAS_SPI_LCD && NEWPANEL
124
 
124
 
125
 //
125
 //
126
 // M3/M4/M5 - Spindle/Laser Control
126
 // M3/M4/M5 - Spindle/Laser Control

+ 2
- 2
Marlin/src/pins/pins_MIGHTYBOARD_REVE.h 查看文件

206
 //
206
 //
207
 // LCD / Controller
207
 // LCD / Controller
208
 //
208
 //
209
-#if ENABLED(ULTRA_LCD)
209
+#if HAS_SPI_LCD
210
 
210
 
211
   #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
211
   #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
212
 
212
 
254
   #define BTN_CENTER       15   // J0
254
   #define BTN_CENTER       15   // J0
255
   #define BTN_ENC          BTN_CENTER
255
   #define BTN_ENC          BTN_CENTER
256
 
256
 
257
-#endif // ULTRA_LCD
257
+#endif // HAS_SPI_LCD
258
 
258
 
259
 //
259
 //
260
 // SD Card
260
 // SD Card

+ 2
- 2
Marlin/src/pins/pins_MINIRAMBO.h 查看文件

140
 //
140
 //
141
 // LCD / Controller
141
 // LCD / Controller
142
 //
142
 //
143
-#if ENABLED(ULTRA_LCD)
143
+#if HAS_SPI_LCD
144
 
144
 
145
   #if !MB(MINIRAMBO_10A)
145
   #if !MB(MINIRAMBO_10A)
146
     #define KILL_PIN       32
146
     #define KILL_PIN       32
188
 
188
 
189
   #endif // NEWPANEL
189
   #endif // NEWPANEL
190
 
190
 
191
-#endif // ULTRA_LCD
191
+#endif // HAS_SPI_LCD

+ 1
- 1
Marlin/src/pins/pins_MKS_SBASE.h 查看文件

214
  * that the garbage/lines are erased immediately after the SD card accesses are completed.
214
  * that the garbage/lines are erased immediately after the SD card accesses are completed.
215
  */
215
  */
216
 
216
 
217
-#if ENABLED(ULTRA_LCD)
217
+#if HAS_SPI_LCD
218
   #define BEEPER_PIN       P1_31   // EXP1.1
218
   #define BEEPER_PIN       P1_31   // EXP1.1
219
   #define BTN_ENC          P1_30   // EXP1.2
219
   #define BTN_ENC          P1_30   // EXP1.2
220
   #define BTN_EN1          P3_26   // EXP2.5
220
   #define BTN_EN1          P3_26   // EXP2.5

+ 2
- 2
Marlin/src/pins/pins_MKS_SGEN_L.h 查看文件

180
  *                -----                                            -----
180
  *                -----                                            -----
181
  *                EXP1                                             EXP2
181
  *                EXP1                                             EXP2
182
  */
182
  */
183
-#if ENABLED(ULTRA_LCD)
183
+#if HAS_SPI_LCD
184
   #define BEEPER_PIN       P1_31
184
   #define BEEPER_PIN       P1_31
185
   #define BTN_ENC          P1_30
185
   #define BTN_ENC          P1_30
186
 
186
 
250
 
250
 
251
   #endif
251
   #endif
252
 
252
 
253
-#endif // ULTRA_LCD
253
+#endif // HAS_SPI_LCD
254
 
254
 
255
 #ifndef SDCARD_CONNECTION
255
 #ifndef SDCARD_CONNECTION
256
   #define SDCARD_CONNECTION ONBOARD
256
   #define SDCARD_CONNECTION ONBOARD

+ 1
- 1
Marlin/src/pins/pins_PRINTRBOARD.h 查看文件

165
 
165
 
166
   #endif
166
   #endif
167
 
167
 
168
-#endif // ULTRA_LCD && NEWPANEL
168
+#endif // HAS_SPI_LCD && NEWPANEL

+ 1
- 1
Marlin/src/pins/pins_PRINTRBOARD_REVF.h 查看文件

200
 //
200
 //
201
 //#define USE_INTERNAL_SD
201
 //#define USE_INTERNAL_SD
202
 
202
 
203
-#if ENABLED(ULTRA_LCD)
203
+#if HAS_SPI_LCD
204
   #define LCD_PINS_RS       9   // E1       JP11-11
204
   #define LCD_PINS_RS       9   // E1       JP11-11
205
   #define LCD_PINS_ENABLE   8   // E0       JP11-10
205
   #define LCD_PINS_ENABLE   8   // E0       JP11-10
206
   #define LCD_PINS_D4       7   // D7       JP11-8
206
   #define LCD_PINS_D4       7   // D7       JP11-8

+ 2
- 2
Marlin/src/pins/pins_RADDS.h 查看文件

207
 //
207
 //
208
 // LCD / Controller
208
 // LCD / Controller
209
 //
209
 //
210
-#if ENABLED(ULTRA_LCD)
210
+#if HAS_SPI_LCD
211
 
211
 
212
   #if ENABLED(RADDS_DISPLAY)
212
   #if ENABLED(RADDS_DISPLAY)
213
 
213
 
268
 
268
 
269
   #endif // SPARK_FULL_GRAPHICS
269
   #endif // SPARK_FULL_GRAPHICS
270
 
270
 
271
-#endif // ULTRA_LCD
271
+#endif // HAS_SPI_LCD
272
 
272
 
273
 #ifndef SDSS
273
 #ifndef SDSS
274
   #define SDSS              4
274
   #define SDSS              4

+ 2
- 2
Marlin/src/pins/pins_RAMBO.h 查看文件

168
 //
168
 //
169
 // LCD / Controller
169
 // LCD / Controller
170
 //
170
 //
171
-#if ENABLED(ULTRA_LCD)
171
+#if HAS_SPI_LCD
172
 
172
 
173
   #define KILL_PIN         80
173
   #define KILL_PIN         80
174
 
174
 
234
 
234
 
235
   #endif // !NEWPANEL
235
   #endif // !NEWPANEL
236
 
236
 
237
-#endif // ULTRA_LCD
237
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_RAMPS.h 查看文件

360
 // LCDs and Controllers //
360
 // LCDs and Controllers //
361
 //////////////////////////
361
 //////////////////////////
362
 
362
 
363
-#if ENABLED(ULTRA_LCD)
363
+#if HAS_SPI_LCD
364
 
364
 
365
   //
365
   //
366
   // LCD Display output pins
366
   // LCD Display output pins
638
     #endif
638
     #endif
639
   #endif // NEWPANEL
639
   #endif // NEWPANEL
640
 
640
 
641
-#endif // ULTRA_LCD
641
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_RAMPS_DUO.h 查看文件

74
 //
74
 //
75
 // LCD / Controller
75
 // LCD / Controller
76
 //
76
 //
77
-#if ENABLED(ULTRA_LCD)
77
+#if HAS_SPI_LCD
78
 
78
 
79
   #if BOTH(NEWPANEL, PANEL_ONE)
79
   #if BOTH(NEWPANEL, PANEL_ONE)
80
     #undef LCD_PINS_D4
80
     #undef LCD_PINS_D4
127
 
127
 
128
   #endif // NEWPANEL
128
   #endif // NEWPANEL
129
 
129
 
130
-#endif // ULTRA_LCD
130
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_RAMPS_FD_V1.h 查看文件

138
 //
138
 //
139
 // LCD / Controller
139
 // LCD / Controller
140
 //
140
 //
141
-#if ENABLED(ULTRA_LCD)
141
+#if HAS_SPI_LCD
142
   // ramps-fd lcd adaptor
142
   // ramps-fd lcd adaptor
143
 
143
 
144
   #define BEEPER_PIN       37
144
   #define BEEPER_PIN       37
202
     #define DOGLCD_MISO    74   // MISO_PIN
202
     #define DOGLCD_MISO    74   // MISO_PIN
203
   #endif
203
   #endif
204
 
204
 
205
-#endif // ULTRA_LCD
205
+#endif // HAS_SPI_LCD
206
 
206
 
207
 #if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)
207
 #if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)
208
   /**
208
   /**

+ 2
- 2
Marlin/src/pins/pins_RAMPS_LINUX.h 查看文件

322
 // LCDs and Controllers //
322
 // LCDs and Controllers //
323
 //////////////////////////
323
 //////////////////////////
324
 
324
 
325
-#if ENABLED(ULTRA_LCD)
325
+#if HAS_SPI_LCD
326
 
326
 
327
   //
327
   //
328
   // LCD Display output pins
328
   // LCD Display output pins
565
     #endif
565
     #endif
566
   #endif // NEWPANEL
566
   #endif // NEWPANEL
567
 
567
 
568
-#endif // ULTRA_LCD
568
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_RAMPS_RE_ARM.h 查看文件

296
   #define LCD_PINS_ENABLE  P0_18   // J3-10 & AUX-3 (SID, MOSI)
296
   #define LCD_PINS_ENABLE  P0_18   // J3-10 & AUX-3 (SID, MOSI)
297
   #define LCD_PINS_D4      P2_06   // J3-8 & AUX-3 (SCK, CLK)
297
   #define LCD_PINS_D4      P2_06   // J3-8 & AUX-3 (SCK, CLK)
298
 
298
 
299
-#elif ENABLED(ULTRA_LCD)
299
+#elif HAS_SPI_LCD
300
 
300
 
301
   //#define SCK_PIN        P0_15   // (52)  system defined J3-9 & AUX-3
301
   //#define SCK_PIN        P0_15   // (52)  system defined J3-9 & AUX-3
302
   //#define MISO_PIN       P0_17   // (50)  system defined J3-10 & AUX-3
302
   //#define MISO_PIN       P0_17   // (50)  system defined J3-10 & AUX-3
392
     //#define LCD_SCREEN_ROT_270
392
     //#define LCD_SCREEN_ROT_270
393
   #endif
393
   #endif
394
 
394
 
395
-#endif // ULTRA_LCD
395
+#endif // HAS_SPI_LCD
396
 
396
 
397
 //
397
 //
398
 // Ethernet pins
398
 // Ethernet pins

+ 2
- 2
Marlin/src/pins/pins_RURAMPS4D_11.h 查看文件

200
 //
200
 //
201
 // LCD / Controller
201
 // LCD / Controller
202
 //
202
 //
203
-#if ENABLED(ULTRA_LCD)
203
+#if HAS_SPI_LCD
204
 
204
 
205
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
205
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
206
     #define BEEPER_PIN      62
206
     #define BEEPER_PIN      62
271
     #define BTN_ENC         40
271
     #define BTN_ENC         40
272
   #endif
272
   #endif
273
 
273
 
274
-#endif // ULTRA_LCD
274
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_RURAMPS4D_13.h 查看文件

186
 //
186
 //
187
 // LCD / Controller
187
 // LCD / Controller
188
 //
188
 //
189
-#if ENABLED(ULTRA_LCD)
189
+#if HAS_SPI_LCD
190
 
190
 
191
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
191
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
192
     #define BEEPER_PIN      62
192
     #define BEEPER_PIN      62
255
     #define BTN_ENC         40
255
     #define BTN_ENC         40
256
   #endif
256
   #endif
257
 
257
 
258
-#endif // ULTRA_LCD
258
+#endif // HAS_SPI_LCD

+ 5
- 5
Marlin/src/pins/pins_SANGUINOLOLU_11.h 查看文件

153
 //
153
 //
154
 // LCD / Controller
154
 // LCD / Controller
155
 //
155
 //
156
-#if ENABLED(ULTRA_LCD)
156
+#if HAS_SPI_LCD
157
 
157
 
158
-  #if ENABLED(DOGLCD)
158
+  #if HAS_GRAPHICAL_LCD
159
 
159
 
160
     #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
160
     #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
161
 
161
 
205
     //#define LCD_SCREEN_ROT_180
205
     //#define LCD_SCREEN_ROT_180
206
     //#define LCD_SCREEN_ROT_270
206
     //#define LCD_SCREEN_ROT_270
207
 
207
 
208
-  #else // !DOGLCD
208
+  #else // !HAS_GRAPHICAL_LCD
209
 
209
 
210
     #define LCD_PINS_RS          4
210
     #define LCD_PINS_RS          4
211
     #define LCD_PINS_ENABLE     17
211
     #define LCD_PINS_ENABLE     17
214
     #define LCD_PINS_D6         28
214
     #define LCD_PINS_D6         28
215
     #define LCD_PINS_D7         27
215
     #define LCD_PINS_D7         27
216
 
216
 
217
-  #endif // !DOGLCD
217
+  #endif // !HAS_GRAPHICAL_LCD
218
 
218
 
219
   #if ENABLED(LCD_I2C_PANELOLU2)
219
   #if ENABLED(LCD_I2C_PANELOLU2)
220
 
220
 
271
 
271
 
272
   #define SD_DETECT_PIN         -1
272
   #define SD_DETECT_PIN         -1
273
 
273
 
274
-#endif // ULTRA_LCD
274
+#endif // HAS_SPI_LCD
275
 
275
 
276
 //
276
 //
277
 // M3/M4/M5 - Spindle/Laser Control
277
 // M3/M4/M5 - Spindle/Laser Control

+ 1
- 1
Marlin/src/pins/pins_SILVER_GATE.h 查看文件

68
 #define HEATER_BED_PIN      8
68
 #define HEATER_BED_PIN      8
69
 #define TEMP_BED_PIN        6
69
 #define TEMP_BED_PIN        6
70
 
70
 
71
-#if ENABLED(DOGLCD)
71
+#if HAS_GRAPHICAL_LCD
72
   #if ENABLED(U8GLIB_ST7920)    // SPI GLCD 12864 ST7920
72
   #if ENABLED(U8GLIB_ST7920)    // SPI GLCD 12864 ST7920
73
     #define LCD_PINS_RS    30
73
     #define LCD_PINS_RS    30
74
     #define LCD_PINS_ENABLE 20
74
     #define LCD_PINS_ENABLE 20

+ 2
- 2
Marlin/src/pins/pins_STM32F1R.h 查看文件

99
 //
99
 //
100
 // LCD Pins
100
 // LCD Pins
101
 //
101
 //
102
-#if ENABLED(ULTRA_LCD)
102
+#if HAS_SPI_LCD
103
 
103
 
104
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
104
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
105
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
105
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
260
     #endif
260
     #endif
261
   #endif // NEWPANEL
261
   #endif // NEWPANEL
262
 
262
 
263
-#endif // ULTRA_LCD
263
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_STM3R_MINI.h 查看文件

114
 //
114
 //
115
 // LCD Pins
115
 // LCD Pins
116
 //
116
 //
117
-#if ENABLED(ULTRA_LCD)
117
+#if HAS_SPI_LCD
118
 
118
 
119
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
119
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
120
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
120
     #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
276
     #endif
276
     #endif
277
   #endif // NEWPANEL
277
   #endif // NEWPANEL
278
 
278
 
279
-#endif // ULTRA_LCD
279
+#endif // HAS_SPI_LCD

+ 1
- 1
Marlin/src/pins/pins_TEENSY35_36.h 查看文件

139
 #endif
139
 #endif
140
 #endif
140
 #endif
141
 
141
 
142
-#if ENABLED(ULTRA_LCD)
142
+#if HAS_SPI_LCD
143
   #define LCD_PINS_RS      40
143
   #define LCD_PINS_RS      40
144
   #define LCD_PINS_ENABLE  41
144
   #define LCD_PINS_ENABLE  41
145
   #define LCD_PINS_D4      42
145
   #define LCD_PINS_D4      42

+ 1
- 1
Marlin/src/pins/pins_TEENSYLU.h 查看文件

153
 
153
 
154
   #define SD_DETECT_PIN    -1
154
   #define SD_DETECT_PIN    -1
155
 
155
 
156
-#endif // ULTRA_LCD && NEWPANEL
156
+#endif // HAS_SPI_LCD && NEWPANEL
157
 
157
 
158
 //
158
 //
159
 // M3/M4/M5 - Spindle/Laser Control
159
 // M3/M4/M5 - Spindle/Laser Control

+ 2
- 2
Marlin/src/pins/pins_TRIGORILLA_14.h 查看文件

81
 // AnyCubic made the following changes to 1.1.0-RC8
81
 // AnyCubic made the following changes to 1.1.0-RC8
82
 // If these are appropriate for your LCD let us know.
82
 // If these are appropriate for your LCD let us know.
83
 //
83
 //
84
-#if 0 && ENABLED(ULTRA_LCD)
84
+#if 0 && HAS_SPI_LCD
85
 
85
 
86
   // LCD Display output pins
86
   // LCD Display output pins
87
   #if BOTH(NEWPANEL, PANEL_ONE)
87
   #if BOTH(NEWPANEL, PANEL_ONE)
107
     #define DOGLCD_A0      42
107
     #define DOGLCD_A0      42
108
   #endif
108
   #endif
109
 
109
 
110
-#endif // ULTRA_LCD
110
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_ULTIMAKER.h 查看文件

115
 //
115
 //
116
 // LCD / Controller
116
 // LCD / Controller
117
 //
117
 //
118
-#if ENABLED(ULTRA_LCD)
118
+#if HAS_SPI_LCD
119
 
119
 
120
   #define BEEPER_PIN 18
120
   #define BEEPER_PIN 18
121
 
121
 
154
 
154
 
155
   #endif // !NEWPANEL
155
   #endif // !NEWPANEL
156
 
156
 
157
-#endif // ULTRA_LCD
157
+#endif // HAS_SPI_LCD
158
 
158
 
159
 //
159
 //
160
 // M3/M4/M5 - Spindle/Laser Control
160
 // M3/M4/M5 - Spindle/Laser Control

+ 89
- 106
Marlin/src/pins/pins_ULTIMAKER_OLD.h 查看文件

24
  * Ultimaker pin assignments (Old electronics)
24
  * Ultimaker pin assignments (Old electronics)
25
  */
25
  */
26
 
26
 
27
- /**
27
+/**
28
  * Rev B   3 JAN 2017
28
  * Rev B   3 JAN 2017
29
  *
29
  *
30
  * Details on pin definitions for M3, M4 & M5 spindle control commands and for
30
  * Details on pin definitions for M3, M4 & M5 spindle control commands and for
55
  *      and repeat steps 2 - 5
55
  *      and repeat steps 2 - 5
56
  */
56
  */
57
 
57
 
58
-#define board_rev_1_1_TO_1_3
59
-//#define board_rev_1_0
60
-//#define board_rev_1_5
61
-
58
+#define BOARD_REV_1_1_TO_1_3
59
+//#define BOARD_REV_1_0
60
+//#define BOARD_REV_1_5
62
 
61
 
63
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
62
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
64
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
63
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
71
 //
70
 //
72
 // Limit Switches
71
 // Limit Switches
73
 //
72
 //
74
-#if ENABLED(board_rev_1_1_TO_1_3)
75
-  #define X_MIN_PIN          15   // SW1
76
-  #define X_MAX_PIN          14   // SW2
77
-  #define Y_MIN_PIN          17   // SW3
78
-  #define Y_MAX_PIN          16   // SW4
79
-  #define Z_MIN_PIN          19   // SW5
80
-  #define Z_MAX_PIN          18   // SW6
73
+#if ENABLED(BOARD_REV_1_1_TO_1_3)
74
+  #define X_MIN_PIN        15   // SW1
75
+  #define X_MAX_PIN        14   // SW2
76
+  #define Y_MIN_PIN        17   // SW3
77
+  #define Y_MAX_PIN        16   // SW4
78
+  #define Z_MIN_PIN        19   // SW5
79
+  #define Z_MAX_PIN        18   // SW6
81
 #endif
80
 #endif
82
 
81
 
83
-#if ENABLED(board_rev_1_0)
84
-  #define X_MIN_PIN          13   // SW1
85
-  #define X_MAX_PIN          12   // SW2
86
-  #define Y_MIN_PIN          11   // SW3
87
-  #define Y_MAX_PIN          10   // SW4
88
-  #define Z_MIN_PIN           9   // SW5
89
-  #define Z_MAX_PIN           8   // SW6
82
+#if ENABLED(BOARD_REV_1_0)
83
+  #if ENABLED(SPINDLE_LASER_ENABLE)
84
+    #define X_STOP_PIN     13   // SW1  (didn't change) - also has a useable hardware PWM
85
+    #define Y_STOP_PIN     12   // SW2
86
+    #define Z_STOP_PIN     11   // SW3
87
+  #else
88
+    #define X_MIN_PIN      13   // SW1
89
+    #define X_MAX_PIN      12   // SW2
90
+    #define Y_MIN_PIN      11   // SW3
91
+    #define Y_MAX_PIN      10   // SW4
92
+    #define Z_MIN_PIN       9   // SW5
93
+    #define Z_MAX_PIN       8   // SW6
94
+  #endif
90
 #endif
95
 #endif
91
 
96
 
92
-#if ENABLED(board_rev_1_5)
93
-  #define X_MIN_PIN          22
94
-  #define X_MAX_PIN          24
95
-  #define Y_MIN_PIN          26
96
-  #define Y_MAX_PIN          28
97
-  #define Z_MIN_PIN          30
98
-  #define Z_MAX_PIN          32
97
+#if ENABLED(BOARD_REV_1_5)
98
+  #define X_MIN_PIN        22
99
+  #define X_MAX_PIN        24
100
+  #define Y_MIN_PIN        26
101
+  #define Y_MAX_PIN        28
102
+  #define Z_MIN_PIN        30
103
+  #define Z_MAX_PIN        32
99
 #endif
104
 #endif
100
 
105
 
101
 //
106
 //
102
 // Z Probe (when not Z_MIN_PIN)
107
 // Z Probe (when not Z_MIN_PIN)
103
 //
108
 //
104
-#ifndef Z_MIN_PROBE_PIN
109
+#if !defined(Z_MIN_PROBE_PIN) && !BOTH(SPINDLE_LASER_ENABLE, BOARD_REV_1_0)
105
   #define Z_MIN_PROBE_PIN  Z_MAX_PIN
110
   #define Z_MIN_PROBE_PIN  Z_MAX_PIN
106
 #endif
111
 #endif
107
 
112
 
120
 #define Z_DIR_PIN          39
125
 #define Z_DIR_PIN          39
121
 #define Z_ENABLE_PIN       35
126
 #define Z_ENABLE_PIN       35
122
 
127
 
123
-#define E0_STEP_PIN        43
124
-#define E0_DIR_PIN         45
125
-#define E0_ENABLE_PIN      41
126
-
127
-#define E1_STEP_PIN        -1   // 49
128
-#define E1_DIR_PIN         -1   // 47
129
-#define E1_ENABLE_PIN      -1   // 48
128
+#if BOTH(SPINDLE_LASER_ENABLE, BOARD_REV_1_1_TO_1_3) && EXTRUDERS == 1
129
+  // Move E0 to the spare and get Spindle/Laser signals from E0
130
+  #define E0_STEP_PIN      49
131
+  #define E0_DIR_PIN       47
132
+  #define E0_ENABLE_PIN    48
133
+#else
134
+  #define E0_STEP_PIN      43
135
+  #define E0_DIR_PIN       45
136
+  #define E0_ENABLE_PIN    41
137
+
138
+  #define E1_STEP_PIN      49
139
+  #define E1_DIR_PIN       47
140
+  #define E1_ENABLE_PIN    48
141
+#endif
130
 
142
 
131
 //
143
 //
132
 // Temperature Sensors
144
 // Temperature Sensors
144
 //
156
 //
145
 // LCD / Controller
157
 // LCD / Controller
146
 //
158
 //
147
-#if ANY(board_rev_1_0, board_rev_1_1_TO_1_3)
148
-  #define LCD_PINS_RS        24
149
-  #define LCD_PINS_ENABLE    22
150
-  #define LCD_PINS_D4        36
151
-  #define LCD_PINS_D5        34
152
-  #define LCD_PINS_D6        32
153
-  #define LCD_PINS_D7        30
159
+#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
160
+
161
+  #define LCD_PINS_RS      24
162
+  #define LCD_PINS_ENABLE  22
163
+  #define LCD_PINS_D4      36
164
+  #define LCD_PINS_D5      34
165
+  #define LCD_PINS_D6      32
166
+  #define LCD_PINS_D7      30
154
 
167
 
155
-#elif ENABLED(board_rev_1_5, ULTRA_LCD)
168
+#elif ENABLED(BOARD_REV_1_5, ULTRA_LCD)
156
 
169
 
157
-  #define BEEPER_PIN 18
170
+  #define BEEPER_PIN       18
158
 
171
 
159
   #if ENABLED(NEWPANEL)
172
   #if ENABLED(NEWPANEL)
160
 
173
 
161
-    #define LCD_PINS_RS 20
174
+    #define LCD_PINS_RS    20
162
     #define LCD_PINS_ENABLE 17
175
     #define LCD_PINS_ENABLE 17
163
-    #define LCD_PINS_D4 16
164
-    #define LCD_PINS_D5 21
165
-    #define LCD_PINS_D6 5
166
-    #define LCD_PINS_D7 6
176
+    #define LCD_PINS_D4    16
177
+    #define LCD_PINS_D5    21
178
+    #define LCD_PINS_D6     5
179
+    #define LCD_PINS_D7     6
167
 
180
 
168
     // buttons are directly attached
181
     // buttons are directly attached
169
-    #define BTN_EN1 40
170
-    #define BTN_EN2 42
171
-    #define BTN_ENC 19
182
+    #define BTN_EN1        40
183
+    #define BTN_EN2        42
184
+    #define BTN_ENC        19
172
 
185
 
173
-    #define SD_DETECT_PIN 38
186
+    #define SD_DETECT_PIN  38
174
 
187
 
175
   #else // !NEWPANEL - Old style panel with shift register
188
   #else // !NEWPANEL - Old style panel with shift register
176
 
189
 
177
     // buttons are attached to a shift register
190
     // buttons are attached to a shift register
178
-    #define SHIFT_CLK 38
179
-    #define SHIFT_LD 42
180
-    #define SHIFT_OUT 40
181
-    #define SHIFT_EN 17
191
+    #define SHIFT_CLK      38
192
+    #define SHIFT_LD       42
193
+    #define SHIFT_OUT      40
194
+    #define SHIFT_EN       17
182
 
195
 
183
-    #define LCD_PINS_RS 16
196
+    #define LCD_PINS_RS    16
184
     #define LCD_PINS_ENABLE 5
197
     #define LCD_PINS_ENABLE 5
185
-    #define LCD_PINS_D4 6
186
-    #define LCD_PINS_D5 21
187
-    #define LCD_PINS_D6 20
188
-    #define LCD_PINS_D7 19
189
-
190
-    #define SD_DETECT_PIN -1
198
+    #define LCD_PINS_D4     6
199
+    #define LCD_PINS_D5    21
200
+    #define LCD_PINS_D6    20
201
+    #define LCD_PINS_D7    19
191
 
202
 
192
   #endif // !NEWPANEL
203
   #endif // !NEWPANEL
193
 
204
 
194
-#endif // ULTRA_LCD
205
+#endif
195
 
206
 
196
 //
207
 //
197
 // case light  - see spindle section for more info on available hardware PWMs
208
 // case light  - see spindle section for more info on available hardware PWMs
198
 //
209
 //
199
-#if !PIN_EXISTS(CASE_LIGHT) && ENABLED(board_rev_1_5)
210
+#if !PIN_EXISTS(CASE_LIGHT) && ENABLED(BOARD_REV_1_5)
200
   #define CASE_LIGHT_PIN        7   // use PWM -  MUST BE HARDWARE PWM
211
   #define CASE_LIGHT_PIN        7   // use PWM -  MUST BE HARDWARE PWM
201
 #endif
212
 #endif
202
 
213
 
204
 // M3/M4/M5 - Spindle/Laser Control
215
 // M3/M4/M5 - Spindle/Laser Control
205
 //
216
 //
206
 #if ENABLED(SPINDLE_LASER_ENABLE)
217
 #if ENABLED(SPINDLE_LASER_ENABLE)
207
-
208
-  #if ENABLED(board_rev_1_0)       // use the last three SW positions
209
-
210
-    #undef Z_MIN_PROBE_PIN
211
-    #undef X_MIN_PIN              // SW1
212
-    #undef X_MAX_PIN              // SW2
213
-    #undef Y_MIN_PIN              // SW3
214
-    #undef Y_MAX_PIN              // SW4
215
-    #undef Z_MIN_PIN              // SW5
216
-    #undef Z_MAX_PIN              // SW6
217
-
218
-    #define X_STOP_PIN         13   // SW1  (didn't change) - also has a useable hardware PWM
219
-    #define Y_STOP_PIN         12   // SW2
220
-    #define Z_STOP_PIN         11   // SW3
221
-
222
-    #define SPINDLE_DIR_PIN          10   // SW4
223
-    #define SPINDLE_LASER_PWM_PIN     9   // SW5  MUST BE HARDWARE PWM
224
-    #define SPINDLE_LASER_ENA_PIN     8   // SW6  Pin should have a pullup!
225
-
226
-  #elif ENABLED(board_rev_1_5)      // use the same pins - but now they are on a different connector
227
-
228
-    #define SPINDLE_DIR_PIN          10   // EXP3-6 (silkscreen says 10)
229
-    #define SPINDLE_LASER_PWM_PIN     9   // EXP3-7 (silkscreen says 9) MUST BE HARDWARE PWM
230
-    #define SPINDLE_LASER_ENA_PIN     8   // EXP3-8 (silkscreen says 8) Pin should have a pullup!
231
-
232
-  #elif ENABLED(board_rev_1_1_TO_1_3)
233
-
218
+  #if EITHER(BOARD_REV_1_0, BOARD_REV_1_5) // Use the last three SW positions
219
+    #define SPINDLE_DIR_PIN          10   // 1.0: SW4  1.5: EXP3-6 ("10")
220
+    #define SPINDLE_LASER_PWM_PIN     9   // 1.0: SW5  1.5: EXP3-7 ( "9") .. MUST BE HARDWARE PWM
221
+    #define SPINDLE_LASER_ENA_PIN     8   // 1.0: SW6  1.5: EXP3-8 ( "8") .. Pin should have a pullup!
222
+  #elif ENABLED(BOARD_REV_1_1_TO_1_3)
234
     /**
223
     /**
235
-     *  Only four hardware PWMs physically connected to anything on these boards:
224
+     * Only four hardware PWMs physically connected to anything on these boards:
236
      *
225
      *
237
-     *    HEATER_0_PIN    2  silkscreen varies - usually "PWM 1" or "HEATER1"
238
-     *    HEATER_1_PIN    3  silkscreen varies - usually "PWM 2" or "HEATER2"
239
-     *    HEATER_BED_PIN  4  silkscreen varies - usually "PWM 3" or "HEATED BED"
240
-     *    E0_DIR_PIN     45
226
+     *   HEATER_0_PIN    2  silkscreen varies - usually "PWM 1" or "HEATER1"
227
+     *   HEATER_1_PIN    3  silkscreen varies - usually "PWM 2" or "HEATER2"
228
+     *   HEATER_BED_PIN  4  silkscreen varies - usually "PWM 3" or "HEATED BED"
229
+     *   E0_DIR_PIN     45
241
      *
230
      *
242
-     *   If one of the heaters is used then special precautions will usually be needed.
243
-     *   They have an LED and resistor pullup to +24V which could damage 3.3V-5V ICs.
231
+     * If one of the heaters is used then special precautions will usually be needed.
232
+     * They have an LED and resistor pullup to +24V which could damage 3.3V-5V ICs.
244
      */
233
      */
245
-    #if EXTRUDERS == 1                     // Move E0 stepper module to the spare and get signals from E0
246
-      #undef E0_STEP_PIN
247
-      #undef E0_DIR_PIN
248
-      #undef E0_ENABLE_PIN
249
-      #define E0_STEP_PIN              49
250
-      #define E0_DIR_PIN               47
251
-      #define E0_ENABLE_PIN            48
234
+    #if EXTRUDERS == 1
252
       #define SPINDLE_DIR_PIN          43
235
       #define SPINDLE_DIR_PIN          43
253
       #define SPINDLE_LASER_PWM_PIN    45   // MUST BE HARDWARE PWM
236
       #define SPINDLE_LASER_PWM_PIN    45   // MUST BE HARDWARE PWM
254
       #define SPINDLE_LASER_ENA_PIN    41   // Pin should have a pullup!
237
       #define SPINDLE_LASER_ENA_PIN    41   // Pin should have a pullup!

+ 1
- 1
buildroot/share/tests/megaatmega2560-tests 查看文件

43
 opt_enable SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER
43
 opt_enable SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER
44
 opt_set TEMP_SENSOR_CHAMBER 3
44
 opt_set TEMP_SENSOR_CHAMBER 3
45
 opt_set HEATER_CHAMBER_PIN 45
45
 opt_set HEATER_CHAMBER_PIN 45
46
-exec_test $1 $2 "RAMPS with 2 extruders, RRDFGSC, Linear ABL, LEDs, and many options"
46
+exec_test $1 $2 "RAMPS with 2 extruders, RepRap LCD, Linear ABL, LEDs, and many options"
47
 
47
 
48
 #
48
 #
49
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
49
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders

Loading…
取消
儲存