summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/keymaps/console
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-07-31 03:10:05 +1000
committerGitHub <noreply@github.com>2021-07-30 18:10:05 +0100
commitd1db0087456e0cc7d20477feb22f434c3a4ce51d (patch)
treecb5c71a2840244b28d859bd7a97bdcf99797ee5a /keyboards/handwired/onekey/keymaps/console
parentcfca9707182aa832bb1c3aa2e93ce3cf749c63e9 (diff)
downloadqmk_firmware-d1db0087456e0cc7d20477feb22f434c3a4ce51d.tar.gz
qmk_firmware-d1db0087456e0cc7d20477feb22f434c3a4ce51d.zip
Onekey cleanup (#13786)
Diffstat (limited to 'keyboards/handwired/onekey/keymaps/console')
-rw-r--r--keyboards/handwired/onekey/keymaps/console/keymap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/keymaps/console/keymap.c b/keyboards/handwired/onekey/keymaps/console/keymap.c
new file mode 100644
index 0000000000..ad8fd402ee
--- /dev/null
+++ b/keyboards/handwired/onekey/keymaps/console/keymap.c
@@ -0,0 +1,20 @@
+#include QMK_KEYBOARD_H
+
+enum custom_keycodes {
+ KC_HELLO = SAFE_RANGE,
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ LAYOUT_ortho_1x1(KC_HELLO)
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case KC_HELLO:
+ if (record->event.pressed) {
+ printf("Hello world!\n");
+ }
+ return false;
+ }
+ return true;
+}