Skip to content

Instantly share code, notes, and snippets.

@ryodeushii
Created May 12, 2024 12:41
Show Gist options
  • Save ryodeushii/4cffcb6a6f427c023a0d0007d173ff2b to your computer and use it in GitHub Desktop.
Save ryodeushii/4cffcb6a6f427c023a0d0007d173ff2b to your computer and use it in GitHub Desktop.
diff --git a/keyboards/nuphy/gem80/ansi/config.h b/keyboards/nuphy/gem80/ansi/config.h
index 44567ceb6d..6164cb567c 100644
--- a/keyboards/nuphy/gem80/ansi/config.h
+++ b/keyboards/nuphy/gem80/ansi/config.h
@@ -88,3 +88,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DEBOUNCE 5
// use dedicated timer for wait_us interrupts instead on ChibiOS defaulting to minimum 100us even if you sleep for 10us
#define WAIT_US_TIMER GPTD14
+// delay between HIGH/LOW states changes for matrix pins
+#define MATRIX_IO_DELAY 10 // default is 30us, approximate latency change is ~0.1ms +-0.02ms
+// NOTE: maybe, there should be something more like 5 cycles to become finally like +-0.24us, because tick is O.O48cycles/us
+#define GPIO_INPUT_PIN_DELAY 5 // input delay, default would be 12 cycles for stm32f072 (48_000_000 / 1_000_000 / 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment