Browse Source

Shift register buttons question

Can LCD shift registers keep up with faster MCUs?
Scott Lahteine 7 years ago
parent
commit
56c02b7f59
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      Marlin/src/lcd/ultralcd.cpp

+ 7
- 5
Marlin/src/lcd/ultralcd.cpp View File

4931
     #define encrot3 1
4931
     #define encrot3 1
4932
   #endif
4932
   #endif
4933
 
4933
 
4934
-  #define GET_BUTTON_STATES(DST) \
4934
+  #define GET_SHIFT_BUTTON_STATES(DST) \
4935
     uint8_t new_##DST = 0; \
4935
     uint8_t new_##DST = 0; \
4936
     WRITE(SHIFT_LD, LOW); \
4936
     WRITE(SHIFT_LD, LOW); \
4937
     WRITE(SHIFT_LD, HIGH); \
4937
     WRITE(SHIFT_LD, HIGH); \
5033
 
5033
 
5034
         #elif ENABLED(REPRAPWORLD_KEYPAD)
5034
         #elif ENABLED(REPRAPWORLD_KEYPAD)
5035
 
5035
 
5036
-          GET_BUTTON_STATES(buttons_reprapworld_keypad);
5036
+          GET_SHIFT_BUTTON_STATES(buttons_reprapworld_keypad);
5037
 
5037
 
5038
         #endif
5038
         #endif
5039
 
5039
 
5040
-      #else
5041
-        GET_BUTTON_STATES(buttons);
5042
-      #endif // !NEWPANEL
5040
+      #else // !NEWPANEL
5041
+
5042
+        GET_SHIFT_BUTTON_STATES(buttons);
5043
+
5044
+      #endif
5043
 
5045
 
5044
     } // next_button_update_ms
5046
     } // next_button_update_ms
5045
 
5047
 

Loading…
Cancel
Save