Selaa lähdekoodia

This is conflicting with the settings in ultralcd.h. Not sure why it' s redefined here anyway.

brupje 9 vuotta sitten
vanhempi
commit
df4d50579a
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5
    5
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 5
- 5
Marlin/ultralcd_implementation_hitachi_HD44780.h Näytä tiedosto

@@ -83,7 +83,7 @@
83 83
     #define BLEN_REPRAPWORLD_KEYPAD_DOWN 6
84 84
     #define BLEN_REPRAPWORLD_KEYPAD_LEFT 7
85 85
     
86
-    #define REPRAPWORLD_BTN_OFFSET 3 // bit offset into buttons for shift register values
86
+    #define REPRAPWORLD_BTN_OFFSET 0 // bit offset into buttons for shift register values
87 87
 
88 88
     #define EN_REPRAPWORLD_KEYPAD_F3 BIT((BLEN_REPRAPWORLD_KEYPAD_F3+REPRAPWORLD_BTN_OFFSET))
89 89
     #define EN_REPRAPWORLD_KEYPAD_F2 BIT((BLEN_REPRAPWORLD_KEYPAD_F2+REPRAPWORLD_BTN_OFFSET))
@@ -94,10 +94,10 @@
94 94
     #define EN_REPRAPWORLD_KEYPAD_DOWN BIT((BLEN_REPRAPWORLD_KEYPAD_DOWN+REPRAPWORLD_BTN_OFFSET))
95 95
     #define EN_REPRAPWORLD_KEYPAD_LEFT BIT((BLEN_REPRAPWORLD_KEYPAD_LEFT+REPRAPWORLD_BTN_OFFSET))
96 96
 
97
-    #define LCD_CLICKED ((buttons&EN_C) || (buttons&EN_REPRAPWORLD_KEYPAD_F1))
98
-    #define REPRAPWORLD_KEYPAD_MOVE_Y_DOWN (buttons&EN_REPRAPWORLD_KEYPAD_DOWN)
99
-    #define REPRAPWORLD_KEYPAD_MOVE_Y_UP (buttons&EN_REPRAPWORLD_KEYPAD_UP)
100
-    #define REPRAPWORLD_KEYPAD_MOVE_HOME (buttons&EN_REPRAPWORLD_KEYPAD_MIDDLE)
97
+    //#define LCD_CLICKED ((buttons&EN_C) || (buttons&EN_REPRAPWORLD_KEYPAD_F1))
98
+    //#define REPRAPWORLD_KEYPAD_MOVE_Y_DOWN (buttons&EN_REPRAPWORLD_KEYPAD_DOWN)
99
+    //#define REPRAPWORLD_KEYPAD_MOVE_Y_UP (buttons&EN_REPRAPWORLD_KEYPAD_UP)
100
+    //#define REPRAPWORLD_KEYPAD_MOVE_HOME (buttons&EN_REPRAPWORLD_KEYPAD_MIDDLE)
101 101
 
102 102
 #elif defined(NEWPANEL)
103 103
   #define LCD_CLICKED (buttons&EN_C)

Loading…
Peruuta
Tallenna