qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (553B)


      1 /* Copyright 2022 Binepad (@binpad) */
      2 /* SPDX-License-Identifier: GPL-2.0-or-later */
      3 
      4 #include QMK_KEYBOARD_H
      5 
      6 enum {
      7     _L0,
      8     _L1
      9 } keyboard_layers;
     10 
     11 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     12     [_L0] = LAYOUT_ortho_1x1(
     13         LT(_L1, KC_MUTE)
     14     ),
     15 
     16     [_L1] = LAYOUT_ortho_1x1(
     17         _______
     18     )
     19 };
     20 
     21 #if defined(ENCODER_MAP_ENABLE)
     22 
     23 const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
     24     [_L0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
     25     [_L1] = { ENCODER_CCW_CW(MS_WHLD, MS_WHLU) }
     26 };
     27 
     28 #endif