diff options
author | takashicompany <t@kashi.company> | 2023-07-04 05:55:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 13:55:12 -0700 |
commit | e423d5e3d4059b3c16358fc5b6b2fe673f204f54 (patch) | |
tree | a6b32e86cb4941b99545c7efeb4ea2a462924cd4 /keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c | |
parent | 989f387d1838fc720a6f12f2ffde3acc0e4b1920 (diff) |
[Keyboard] Add Baumkuchen (#20766)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c')
-rw-r--r-- | keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c b/keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c new file mode 100644 index 0000000000..b99d3a3592 --- /dev/null +++ b/keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c @@ -0,0 +1,33 @@ +// Copyright 2023 takashicompany (@takashicompany) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_Q, KC_W, KC_E, KC_R, + KC_A, KC_S, KC_D, KC_F, + KC_Z, KC_X, KC_C, KC_V, KC_B, + KC_NO, KC_NO + ) +}; + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + + if (record->event.pressed) { + rgblight_toggle_noeeprom(); // for test + } + + return true; +} + +bool encoder_update_user(uint8_t index, bool clockwise) { + + if (clockwise) { + tap_code(KC_1); + } else { + tap_code(KC_2); + } + + return false; +} |