Procházet zdrojové kódy

Use LCD conditionals in pins files (#14428)

Scott Lahteine před 4 roky
rodič
revize
7e16835c83
No account linked to committer's email address
51 změnil soubory, kde provedl 194 přidání a 204 odebrání
  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 Zobrazit soubor

@@ -1093,7 +1093,7 @@ void setup() {
1093 1093
     init_closedloop();
1094 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 1097
     card.beginautostart();
1098 1098
   #endif
1099 1099
 

+ 15
- 8
Marlin/src/pins/pins.h Zobrazit soubor

@@ -878,14 +878,21 @@
878 878
 #ifndef LCD_PINS_D4
879 879
   #define LCD_PINS_D4 -1
880 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 896
 #endif
890 897
 
891 898
 /**

+ 1
- 1
Marlin/src/pins/pins_3DRAG.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_ANET_10.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_ARCHIM1.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_ARCHIM2.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_AZTEEG_X5_MINI.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_BEAST.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_BIGTREE_SKR_MINI_V1_1.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_BIGTREE_SKR_V1.3.h Zobrazit soubor

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

+ 5
- 5
Marlin/src/pins/pins_BIQU_B300_V1.0.h Zobrazit soubor

@@ -119,7 +119,7 @@
119 119
  * for the onboard SD card, and a chip select signal is not provided for the remote
120 120
  * SD card.
121 121
  */
122
-#if ENABLED(ULTRA_LCD)
122
+#if HAS_SPI_LCD
123 123
 
124 124
   #define BEEPER_PIN       P1_31   // EXP1-1
125 125
 
@@ -132,15 +132,15 @@
132 132
   #define LCD_PINS_ENABLE  P0_18   // (MOSI) EXP1-3
133 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 137
   #endif
138 138
 
139 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 141
   #endif
142 142
 
143
-#endif // ULTRA_LCD
143
+#endif // HAS_SPI_LCD
144 144
 
145 145
 /**
146 146
  * SD Card Reader

+ 3
- 3
Marlin/src/pins/pins_BIQU_BQ111_A4.h Zobrazit soubor

@@ -99,7 +99,7 @@
99 99
  * for the onboard SD card, and a chip select signal is not provided for the remote
100 100
  * SD card.
101 101
  */
102
-#if ENABLED(ULTRA_LCD)
102
+#if HAS_SPI_LCD
103 103
 
104 104
   #define BEEPER_PIN          P1_31   // EXP1-1
105 105
 
@@ -112,7 +112,7 @@
112 112
   #define LCD_PINS_ENABLE     P0_18   // (MOSI) EXP1-3
113 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 116
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
117 117
   #endif
118 118
 
@@ -120,7 +120,7 @@
120 120
     #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
121 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 Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_CHITU3D.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_COHESION3D_MINI.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_COHESION3D_REMIX.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_DUE3DOM.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_DUE3DOM_MINI.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_DUPLICATOR_I3_PLUS.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_EINSY_RAMBO.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_EINSY_RETRO.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_FYSETC_AIO_II.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_FYSETC_CHEETAH.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_GT2560_REV_A.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_GTM32_PRO_VB.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_MEGATRONICS.h Zobrazit soubor

@@ -120,7 +120,7 @@
120 120
 
121 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 126
 // M3/M4/M5 - Spindle/Laser Control

+ 2
- 2
Marlin/src/pins/pins_MIGHTYBOARD_REVE.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_MINIRAMBO.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_MKS_SBASE.h Zobrazit soubor

@@ -214,7 +214,7 @@
214 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 218
   #define BEEPER_PIN       P1_31   // EXP1.1
219 219
   #define BTN_ENC          P1_30   // EXP1.2
220 220
   #define BTN_EN1          P3_26   // EXP2.5

+ 2
- 2
Marlin/src/pins/pins_MKS_SGEN_L.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_PRINTRBOARD.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_PRINTRBOARD_REVF.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RADDS.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMBO.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS_DUO.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS_FD_V1.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS_LINUX.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RAMPS_RE_ARM.h Zobrazit soubor

@@ -296,7 +296,7 @@
296 296
   #define LCD_PINS_ENABLE  P0_18   // J3-10 & AUX-3 (SID, MOSI)
297 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 301
   //#define SCK_PIN        P0_15   // (52)  system defined J3-9 & AUX-3
302 302
   //#define MISO_PIN       P0_17   // (50)  system defined J3-10 & AUX-3
@@ -392,7 +392,7 @@
392 392
     //#define LCD_SCREEN_ROT_270
393 393
   #endif
394 394
 
395
-#endif // ULTRA_LCD
395
+#endif // HAS_SPI_LCD
396 396
 
397 397
 //
398 398
 // Ethernet pins

+ 2
- 2
Marlin/src/pins/pins_RURAMPS4D_11.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_RURAMPS4D_13.h Zobrazit soubor

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

+ 5
- 5
Marlin/src/pins/pins_SANGUINOLOLU_11.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_SILVER_GATE.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_STM32F1R.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_STM3R_MINI.h Zobrazit soubor

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

+ 1
- 1
Marlin/src/pins/pins_TEENSY35_36.h Zobrazit soubor

@@ -139,7 +139,7 @@ D8    HEATER_BED_PIN      CS1     RX4  A12 31 |   46 * * 47   | 34 A15 PWM
139 139
 #endif
140 140
 #endif
141 141
 
142
-#if ENABLED(ULTRA_LCD)
142
+#if HAS_SPI_LCD
143 143
   #define LCD_PINS_RS      40
144 144
   #define LCD_PINS_ENABLE  41
145 145
   #define LCD_PINS_D4      42

+ 1
- 1
Marlin/src/pins/pins_TEENSYLU.h Zobrazit soubor

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

+ 2
- 2
Marlin/src/pins/pins_TRIGORILLA_14.h Zobrazit soubor

@@ -81,7 +81,7 @@
81 81
 // AnyCubic made the following changes to 1.1.0-RC8
82 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 86
   // LCD Display output pins
87 87
   #if BOTH(NEWPANEL, PANEL_ONE)
@@ -107,4 +107,4 @@
107 107
     #define DOGLCD_A0      42
108 108
   #endif
109 109
 
110
-#endif // ULTRA_LCD
110
+#endif // HAS_SPI_LCD

+ 2
- 2
Marlin/src/pins/pins_ULTIMAKER.h Zobrazit soubor

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

+ 89
- 106
Marlin/src/pins/pins_ULTIMAKER_OLD.h Zobrazit soubor

@@ -24,7 +24,7 @@
24 24
  * Ultimaker pin assignments (Old electronics)
25 25
  */
26 26
 
27
- /**
27
+/**
28 28
  * Rev B   3 JAN 2017
29 29
  *
30 30
  * Details on pin definitions for M3, M4 & M5 spindle control commands and for
@@ -55,10 +55,9 @@
55 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 62
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
64 63
   #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
@@ -71,37 +70,43 @@
71 70
 //
72 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 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 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 104
 #endif
100 105
 
101 106
 //
102 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 110
   #define Z_MIN_PROBE_PIN  Z_MAX_PIN
106 111
 #endif
107 112
 
@@ -120,13 +125,20 @@
120 125
 #define Z_DIR_PIN          39
121 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 144
 // Temperature Sensors
@@ -144,59 +156,58 @@
144 156
 //
145 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 172
   #if ENABLED(NEWPANEL)
160 173
 
161
-    #define LCD_PINS_RS 20
174
+    #define LCD_PINS_RS    20
162 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 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 188
   #else // !NEWPANEL - Old style panel with shift register
176 189
 
177 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 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 203
   #endif // !NEWPANEL
193 204
 
194
-#endif // ULTRA_LCD
205
+#endif
195 206
 
196 207
 //
197 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 211
   #define CASE_LIGHT_PIN        7   // use PWM -  MUST BE HARDWARE PWM
201 212
 #endif
202 213
 
@@ -204,51 +215,23 @@
204 215
 // M3/M4/M5 - Spindle/Laser Control
205 216
 //
206 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 235
       #define SPINDLE_DIR_PIN          43
253 236
       #define SPINDLE_LASER_PWM_PIN    45   // MUST BE HARDWARE PWM
254 237
       #define SPINDLE_LASER_ENA_PIN    41   // Pin should have a pullup!

+ 1
- 1
buildroot/share/tests/megaatmega2560-tests Zobrazit soubor

@@ -43,7 +43,7 @@ opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING EEPROM_SETTINGS \
43 43
 opt_enable SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER
44 44
 opt_set TEMP_SENSOR_CHAMBER 3
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 49
 # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders

Loading…
Zrušit
Uložit