|
204 | 204 | * (LCM_D5) 21 | 5 6 | GND
|
205 | 205 | * (LCM_D4) 16 | 7 8 | 17 (LCM_EN)
|
206 | 206 | * (EC_PRESS) 19 | 9 10 | GND
|
207 |
| - * (RESET) |11 12 | 19 (BEEP) |
| 207 | + * (RESET) |11 12 | 18 (BEEP) |
208 | 208 | * ------
|
209 | 209 | * H2
|
210 | 210 | */
|
211 | 211 |
|
212 |
| -#define LCM_D4 16 // Used as BTN_EN1 for YHCB2004 LCD Module |
213 |
| -#define LCM_D5 21 // YHCB2004_SCK_PIN |
214 |
| -#define LCM_D6 5 // YHCB2004_SS_PIN |
215 |
| -#define LCM_D7 36 // YHCB2004_MOSI_PIN |
216 |
| -#define LCM_EN 17 // BTN_EN2 |
217 |
| -#define EC_PRESS 19 // BTN_ENC |
218 |
| -#define BEEP 18 |
| 212 | +//#define H2_01_PIN 5V |
| 213 | +//#define H2_02_PIN GND |
| 214 | +#define H2_03_PIN 36 // LCM_D7 |
| 215 | +#define H2_04_PIN 5 // LCM_D6 |
| 216 | +#define H2_05_PIN 21 // LCM_D5 |
| 217 | +//#define H2_06_PIN GND |
| 218 | +#define H2_07_PIN 16 // LCM_D4 |
| 219 | +#define H2_08_PIN 17 // LCM_EN |
| 220 | +#define H2_09_PIN 19 // EC_PRESS |
| 221 | +//#define H2_10_PIN GND |
| 222 | +//#define H2_11_PIN RESET |
| 223 | +#define H2_12_PIN 18 // BEEP |
219 | 224 |
|
220 |
| -#define BEEPER_PIN BEEP |
221 | 225 | #define LCM_RS 20 // Pin named and connected to 10k pull-up resistor but unused
|
222 | 226 |
|
223 | 227 | #if ENABLED(YHCB2004)
|
224 |
| - #define YHCB2004_SS_PIN LCM_D6 |
225 |
| - #define YHCB2004_SCK_PIN LCM_D5 |
226 |
| - #define YHCB2004_MOSI_PIN LCM_D7 |
| 228 | + #define YHCB2004_SS_PIN H2_04_PIN |
| 229 | + #define YHCB2004_SCK_PIN H2_05_PIN |
| 230 | + #define YHCB2004_MOSI_PIN H2_03_PIN |
227 | 231 | #define YHCB2004_MISO_PIN LCM_RS // Unused on V4.1b board
|
| 232 | + #define BTN_EN1 H2_07_PIN |
| 233 | + #define BTN_EN2 H2_08_PIN |
| 234 | + #define BTN_ENC H2_09_PIN |
| 235 | + #define BEEPER_PIN H2_12_PIN |
| 236 | +#elif ENABLED(CR10_STOCKDISPLAY) // Firmware compatible with stock GT 128x64 12pin LCD for the V41b |
| 237 | + #define LCD_PINS_RS H2_04_PIN // DOGLCD_CS |
| 238 | + #define LCD_PINS_D4 H2_05_PIN // DOGLCD_SCK |
| 239 | + #define LCD_PINS_EN H2_03_PIN // DOGLCD_MOSI |
| 240 | + #define BTN_EN1 H2_07_PIN |
| 241 | + #define BTN_EN2 H2_08_PIN |
| 242 | + #define BTN_ENC H2_09_PIN |
| 243 | + #define BEEPER_PIN H2_12_PIN |
228 | 244 | #elif HAS_WIRED_LCD
|
229 | 245 | #error "GT2560 V4.1b requires an adapter for common LCDs."
|
230 |
| - /* Cannot use because V4.1b board has not LCD_PINS_RS wired to display connector |
231 |
| - #define LCD_PINS_RS 20 |
232 |
| - #define LCD_PINS_EN 17 |
233 |
| - #define LCD_PINS_D4 16 |
234 |
| - #define LCD_PINS_D5 21 |
235 |
| - #define LCD_PINS_D6 5 |
236 |
| - #define LCD_PINS_D7 36 |
237 |
| - //*/ |
238 |
| -#endif |
239 |
| - |
240 |
| -#if ENABLED(YHCB2004) |
241 |
| - #define BTN_EN1 LCM_D4 |
242 |
| - #define BTN_EN2 LCM_EN |
243 |
| - #define BTN_ENC EC_PRESS |
244 |
| -#elif IS_NEWPANEL |
245 |
| - #define BTN_EN1 42 |
246 |
| - #define BTN_EN2 40 |
247 |
| - #define BTN_ENC 19 |
| 246 | + /* Cannot use because V4.1b board has not LCD_PINS_RS wired to display connector */ |
248 | 247 | #endif
|
0 commit comments