1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/takashicompany/baumkuchen/keymaps/build_test/keymap.c
takashicompany e423d5e3d4
[Keyboard] Add Baumkuchen (#20766)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
2023-07-03 13:55:12 -07:00

34 lines
708 B
C

// 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;
}