diff options
author | QMK Bot <hello@qmk.fm> | 2023-07-03 20:55:45 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2023-07-03 20:55:45 +0000 |
commit | 7722031260e7761b1524802a48d4580bf9e1e96c (patch) | |
tree | e9a39411dff7f061ceed20d1c39dfa1780cec192 /keyboards/takashicompany/baumkuchen/keymaps/build_test | |
parent | 874aa47a5342447ca8df8aee1692a1b5ae8e171b (diff) | |
parent | e423d5e3d4059b3c16358fc5b6b2fe673f204f54 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/takashicompany/baumkuchen/keymaps/build_test')
-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; +} |