Compare commits
1 Commits
11a55cf446
...
266143d5fc
Author | SHA1 | Date |
---|---|---|
fluffy | 266143d5fc |
|
@ -13,7 +13,7 @@
|
|||
//! Debounce time in milliseconds
|
||||
constexpr int debounceTime = 50;
|
||||
|
||||
//!
|
||||
//! Input button
|
||||
struct Input {
|
||||
int pin; //!< Input pin
|
||||
int keyCode; //!< Mapped key
|
||||
|
@ -68,7 +68,6 @@ void loop()
|
|||
bool val = !digitalRead(i.pin);
|
||||
if (val != i.pressed && (i.lastChange + debounceTime) < now) {
|
||||
if (val) {
|
||||
// TODO debounce
|
||||
Keyboard.press(i.keyCode);
|
||||
} else {
|
||||
Keyboard.release(i.keyCode);
|
||||
|
|
Loading…
Reference in New Issue