mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-19 10:22:44 +01:00
bug fix,increase delay in matrix/keys scan process
fn+arrow keys to be page up/dn, home end bottom mouse middle key fixed shift caps lock bug fix now there are only two layers in keyboard remove bug code,layers, use USBComposite_stm32f1's modifiers and setAdjustForHostCapsLock to do shift / caps lock job
This commit is contained in:
@@ -25,7 +25,7 @@ uint8_t scan_keys(){
|
||||
uint8_t s;
|
||||
|
||||
data = 0;
|
||||
delayMicroseconds(20);
|
||||
delayMicroseconds(30);
|
||||
for(int i = 0;i < KEYS_NUM;i++) {
|
||||
|
||||
s = digitalRead(keys_io[i]); //HIGH =0,LOW = 1
|
||||
@@ -47,6 +47,8 @@ uint8_t scan_keys(){
|
||||
if (keypad_debouncing.deing == true && ( (millis() - keypad_debouncing.de_time) > KEY_DEBOUNCE )) {
|
||||
keys = keys_debouncing;
|
||||
keypad_debouncing.deing = false;
|
||||
}else {
|
||||
delay(1);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user