|
|
@ -17,9 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
Basic global debounce algorithm. Used in 99% of keyboards at time of implementation |
|
|
|
Basic global debounce algorithm. Used in 99% of keyboards at time of implementation |
|
|
|
When no state changes have occured for DEBOUNCE milliseconds, we push the state. |
|
|
|
When no state changes have occured for DEBOUNCE milliseconds, we push the state. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
#include "matrix.h" |
|
|
|
#include "debounce.h" |
|
|
|
#include "timer.h" |
|
|
|
#include "timer.h" |
|
|
|
#include "quantum.h" |
|
|
|
|
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#ifndef DEBOUNCE |
|
|
|
#ifndef DEBOUNCE |
|
|
|
# define DEBOUNCE 5 |
|
|
|
# define DEBOUNCE 5 |
|
|
|