qmk_firmware

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

keymap.c (1604B)


      1 // Copyright (c) 2022 Marco Pelegrini <marco@pelegrini.ca>
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #include QMK_KEYBOARD_H
      5 
      6 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      7     /*
      8      * ┌───┬───┬───┐
      9      * │ 7 │ 8 │ 9 │
     10      * ├───┼───┼───┤
     11      * │ 4 │ 5 │ 6 │
     12      * ├───┼───┼───┤
     13      * │ 1 │ 2 │ 3 │
     14      * └───┴───┴───┘
     15      */
     16     [0] = LAYOUT_ortho_3x3(
     17         KC_P7,   KC_P8,   KC_P9,
     18         KC_P4,   KC_P5,   KC_P6,
     19         KC_P1,   KC_P2,   KC_P3
     20     )
     21 };
     22 
     23 const uint16_t PROGMEM backlight_next[] = {KC_P7, KC_P8, COMBO_END};
     24 const uint16_t PROGMEM backlight_toggle[] = {KC_P7, KC_P9, COMBO_END};
     25 const uint16_t PROGMEM hue_up[] = {KC_P7, KC_P4, COMBO_END};
     26 const uint16_t PROGMEM hue_down[] = {KC_P7, KC_P1, COMBO_END};
     27 const uint16_t PROGMEM sat_up[] = {KC_P7, KC_P5, COMBO_END};
     28 const uint16_t PROGMEM sat_down[] = {KC_P7, KC_P2, COMBO_END};
     29 const uint16_t PROGMEM value_up[] = {KC_P7, KC_P6, COMBO_END};
     30 const uint16_t PROGMEM value_down[] = {KC_P7, KC_P3, COMBO_END};
     31 const uint16_t PROGMEM speed_up[] = {KC_P8, KC_P4, COMBO_END};
     32 const uint16_t PROGMEM speed_down[] = {KC_P8, KC_P1, COMBO_END};
     33 combo_t key_combos[] = {
     34     COMBO(backlight_next, RM_NEXT),
     35     COMBO(backlight_toggle, RM_TOGG),
     36     COMBO(hue_up, RM_HUEU),
     37     COMBO(hue_down, RM_HUED),
     38     COMBO(sat_up, RM_SATU),
     39     COMBO(sat_down, RM_SATD),
     40     COMBO(value_up, RM_VALU),
     41     COMBO(value_down, RM_VALD),
     42     COMBO(speed_up, RM_SPDU),
     43     COMBO(speed_down, RM_SPDD)
     44 };