|
@@ -2491,11 +2491,9 @@ void lcd_init() {
|
2491
|
2491
|
#endif
|
2492
|
2492
|
|
2493
|
2493
|
#if ENABLED(REPRAPWORLD_KEYPAD)
|
2494
|
|
- pinMode(SHIFT_CLK, OUTPUT);
|
2495
|
|
- pinMode(SHIFT_LD, OUTPUT);
|
2496
|
|
- pinMode(SHIFT_OUT, INPUT);
|
2497
|
|
- WRITE(SHIFT_OUT, HIGH);
|
2498
|
|
- WRITE(SHIFT_LD, HIGH);
|
|
2494
|
+ SET_OUTPUT(SHIFT_CLK);
|
|
2495
|
+ OUT_WRITE(SHIFT_LD, HIGH);
|
|
2496
|
+ SET_INPUT_PULLUP(SHIFT_OUT);
|
2499
|
2497
|
#endif
|
2500
|
2498
|
|
2501
|
2499
|
#if BUTTON_EXISTS(UP)
|
|
@@ -2514,16 +2512,13 @@ void lcd_init() {
|
2514
|
2512
|
#else // !NEWPANEL
|
2515
|
2513
|
|
2516
|
2514
|
#if ENABLED(SR_LCD_2W_NL) // Non latching 2 wire shift register
|
2517
|
|
- pinMode(SR_DATA_PIN, OUTPUT);
|
2518
|
|
- pinMode(SR_CLK_PIN, OUTPUT);
|
|
2515
|
+ SET_OUTPUT(SR_DATA_PIN);
|
|
2516
|
+ SET_OUTPUT(SR_CLK_PIN);
|
2519
|
2517
|
#elif defined(SHIFT_CLK)
|
2520
|
|
- pinMode(SHIFT_CLK, OUTPUT);
|
2521
|
|
- pinMode(SHIFT_LD, OUTPUT);
|
2522
|
|
- pinMode(SHIFT_EN, OUTPUT);
|
2523
|
|
- pinMode(SHIFT_OUT, INPUT);
|
2524
|
|
- WRITE(SHIFT_OUT, HIGH);
|
2525
|
|
- WRITE(SHIFT_LD, HIGH);
|
2526
|
|
- WRITE(SHIFT_EN, LOW);
|
|
2518
|
+ SET_OUTPUT(SHIFT_CLK);
|
|
2519
|
+ OUT_WRITE(SHIFT_LD, HIGH);
|
|
2520
|
+ OUT_WRITE(SHIFT_EN, LOW);
|
|
2521
|
+ SET_INPUT_PULLUP(SHIFT_OUT);
|
2527
|
2522
|
#endif // SR_LCD_2W_NL
|
2528
|
2523
|
|
2529
|
2524
|
#endif // !NEWPANEL
|