|
100 | 100 | #define X_STEP_PIN PC2
|
101 | 101 | #define X_DIR_PIN PB9
|
102 | 102 |
|
103 |
| -#define Y_ENABLE_PIN X_ENABLE_PIN |
| 103 | +#define Y_ENABLE_PIN X_ENABLE_PIN |
104 | 104 | #define Y_STEP_PIN PB8
|
105 | 105 | #define Y_DIR_PIN PB7
|
106 | 106 |
|
107 |
| -#define Z_ENABLE_PIN X_ENABLE_PIN |
| 107 | +#define Z_ENABLE_PIN X_ENABLE_PIN |
108 | 108 | #define Z_STEP_PIN PB6
|
109 | 109 | #define Z_DIR_PIN PB5
|
110 | 110 |
|
111 |
| -#define E0_ENABLE_PIN X_ENABLE_PIN |
| 111 | +#define E0_ENABLE_PIN X_ENABLE_PIN |
112 | 112 | #define E0_STEP_PIN PB4
|
113 | 113 | #define E0_DIR_PIN PB3
|
114 | 114 |
|
|
188 | 188 | //
|
189 | 189 | #define SD_DETECT_PIN PC1
|
190 | 190 | #define SDCARD_CONNECTION ONBOARD
|
191 |
| -#define ONBOARD_SPI_DEVICE 1 |
192 |
| -//#define ONBOARD_SD_CS_PIN PA4 // SDSS |
193 |
| -#define SDIO_SUPPORT |
| 191 | +#define ONBOARD_SDIO |
| 192 | +#define SDIO_CLOCK 4500000 |
| 193 | +#define SDIO_READ_RETRIES 16 |
194 | 194 | #define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
|
195 | 195 |
|
196 |
| -#if ENABLED(CR10_STOCKDISPLAY) |
197 |
| - |
198 |
| - #if ENABLED(RET6_12864_LCD) |
199 |
| - // RET6 12864 LCD |
200 |
| - #define LCD_PINS_RS PB12 |
201 |
| - #define LCD_PINS_EN PB15 |
202 |
| - #define LCD_PINS_D4 PB13 |
203 |
| - |
204 |
| - #define BTN_ENC PB2 |
205 |
| - #define BTN_EN1 PA2 |
206 |
| - #define BTN_EN2 PB14 |
| 196 | +/** |
| 197 | + * ------ |
| 198 | + * PC0 | 1 2 | PB2 |
| 199 | + * TX2 PA2 | 3 4 | PA3 RX2 |
| 200 | + * SPI2_MISO PB14 | 5 6 | PB13 SPI2_SCK |
| 201 | + * SPI2_NSS PB12 | 7 8 | PB15 SPI2_MOSI |
| 202 | + * GND | 9 10 | 5V |
| 203 | + * ------ |
| 204 | + * EXP1 |
| 205 | + */ |
| 206 | +#define EXP1_01_PIN PC0 |
| 207 | +#define EXP1_02_PIN PB2 |
| 208 | +#define EXP1_03_PIN PA2 |
| 209 | +#define EXP1_04_PIN PA3 |
| 210 | +#define EXP1_05_PIN PB14 |
| 211 | +#define EXP1_06_PIN PB13 |
| 212 | +#define EXP1_07_PIN PB12 |
| 213 | +#define EXP1_08_PIN PB15 |
207 | 214 |
|
208 |
| - #ifndef HAS_PIN_27_BOARD |
209 |
| - #define BEEPER_PIN PC0 |
210 |
| - #endif |
| 215 | +#if ENABLED(CR10_STOCKDISPLAY) |
211 | 216 |
|
212 |
| - #elif ENABLED(VET6_12864_LCD) |
213 |
| - // VET6 12864 LCD |
214 |
| - #define LCD_PINS_RS PA4 |
215 |
| - //#define LCD_PINS_EN PA7 |
216 |
| - #define LCD_PINS_D4 PA5 |
| 217 | + #define LCD_PINS_RS EXP1_07_PIN |
| 218 | + #define LCD_PINS_EN EXP1_08_PIN |
| 219 | + #define LCD_PINS_D4 EXP1_06_PIN |
217 | 220 |
|
218 |
| - #define BTN_ENC PC5 |
219 |
| - #define BTN_EN1 PB10 |
220 |
| - #define BTN_EN2 PA6 |
| 221 | + #define BTN_ENC EXP1_02_PIN |
| 222 | + #define BTN_EN1 EXP1_03_PIN |
| 223 | + #define BTN_EN2 EXP1_05_PIN |
221 | 224 |
|
222 |
| - #else |
223 |
| - #error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the CREALITY_CR4NTXXC10 controller." |
| 225 | + #ifndef HAS_PIN_27_BOARD |
| 226 | + #define BEEPER_PIN EXP1_01_PIN |
224 | 227 | #endif
|
225 | 228 |
|
226 | 229 | #elif ENABLED(DWIN_CREALITY_LCD)
|
227 | 230 |
|
228 |
| - // RET6 DWIN ENCODER LCD |
229 |
| - #define BTN_ENC PB14 |
230 |
| - #define BTN_EN1 PB15 |
231 |
| - #define BTN_EN2 PB12 |
| 231 | + // DWIN ENCODER LCD |
| 232 | + #define BTN_ENC EXP1_05_PIN |
| 233 | + #define BTN_EN1 EXP1_08_PIN |
| 234 | + #define BTN_EN2 EXP1_07_PIN |
232 | 235 |
|
233 |
| - //#define LCD_LED_PIN PB2 |
| 236 | + //#define LCD_LED_PIN EXP1_02_PIN |
234 | 237 | #ifndef BEEPER_PIN
|
235 |
| - #define BEEPER_PIN PB13 |
236 |
| - #undef SPEAKER |
| 238 | + #define BEEPER_PIN EXP1_06_PIN |
| 239 | + #define NO_SPEAKER |
237 | 240 | #endif
|
238 | 241 |
|
239 |
| -#elif ENABLED(DWIN_VET6_CREALITY_LCD) |
240 |
| - |
241 |
| - // VET6 DWIN ENCODER LCD |
242 |
| - #define BTN_ENC PA6 |
243 |
| - //#define BTN_EN1 PA7 |
244 |
| - #define BTN_EN2 PA4 |
245 |
| - |
246 |
| - #define BEEPER_PIN PA5 |
247 |
| - |
248 |
| -#endif |
249 |
| - |
250 |
| -// |
251 |
| -// M3/M4/M5 - Spindle/Laser Control |
252 |
| -// |
253 |
| -#if HAS_CUTTER |
254 |
| - //#undef HEATER_0_PIN |
255 |
| - //#undef HEATER_BED_PIN |
256 |
| - //#undef FAN0_PIN |
257 |
| - #define SPINDLE_LASER_ENA_PIN PC0 // FET 1 |
258 |
| - #define SPINDLE_LASER_PWM_PIN PC0 // Bed FET |
259 |
| - #define SPINDLE_DIR_PIN PC0 // FET 4 |
260 |
| - //#define LASER_SOFT_PWM_PIN PC0 |
261 | 242 | #endif
|
0 commit comments