Skip to content

Instantly share code, notes, and snippets.

@euav
euav / keyboard.ino
Created May 5, 2025 08:33
Arduino Keyboard debounce without delay
#include <Keyboard.h>
#define DEBOUNCE_PRESS_US 3000
#define DEBOUNCE_RELEASE_US 5000
const int n_pins = 8;
const uint8_t pins[n_pins] = {
6, 5, 4, 3,
20, 19, 18, 15,
};