]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/quantum.c
Make `readPin` output a 0 or 1 when using AVR to match ChibiOS's version of `readPin`
[qmk_firmware.git] / quantum / quantum.c
index 69692233ebe4254c95223c7790f6bdd7eda8ffe4..a57d4f89fe67014f655eca8796ac3d4d5b00cc1c 100644 (file)
@@ -132,6 +132,14 @@ void unregister_code16 (uint16_t code) {
   }
 }
 
+void tap_code16(uint16_t code) {
+  register_code16(code);
+  #if TAP_CODE_DELAY > 0
+    wait_ms(TAP_CODE_DELAY);
+  #endif
+  unregister_code16(code);
+}
+
 __attribute__ ((weak))
 bool process_action_kb(keyrecord_t *record) {
   return true;