qmk_firmware

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

keymap.c (1606B)


      1 /* Copyright 2019 joaofbmaia
      2  *
      3  * This program is free software: you can redistribute it and/or modify
      4  * it under the terms of the GNU General Public License as published by
      5  * the Free Software Foundation, either version 2 of the License, or
      6  * (at your option) any later version.
      7  *
      8  * This program is distributed in the hope that it will be useful,
      9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11  * GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License
     14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15  */
     16 #include QMK_KEYBOARD_H
     17 
     18 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     19   
     20   /* LAYER 0
     21   * ,-----------------------.
     22   * |  F13  |  F14  | F15/FN|  Hold for FN
     23   * |-------+-------+-------|
     24   * |  F16  |  F17  |  F18  |
     25   * `-------+-------+-------'
     26   */
     27   [0] = LAYOUT(
     28     KC_F13, KC_F14, LT(1, KC_F15),
     29     KC_F16, KC_F17, KC_F18
     30   ),
     31 
     32   /* LAYER 1
     33   * ,-----------------------.
     34   * |UG_TOGG|RGBMOD+|       |
     35   * |-------+-------+-------|
     36   * |RGBHUE+|RGBBRI+|Spec FN|   Hold along with previous to access special funtions (QK_BOOT)
     37   * `-------+-------+-------'
     38   */
     39   [1] = LAYOUT(
     40     UG_TOGG, UG_NEXT, KC_TRNS,
     41     UG_HUEU, UG_VALU, MO(2)
     42   ),
     43 
     44   /* LAYER 2
     45   * ,-----------------------.
     46   * | QK_BOOT |RGBMOD-|       |
     47   * |-------+-------+-------|
     48   * |RGBHUE-|RGBBRI-|       |
     49   * `-------+-------+-------'
     50   */
     51   [2] = LAYOUT(
     52     QK_BOOT, UG_PREV, KC_NO,
     53     UG_HUED, UG_VALD, KC_TRNS
     54   )
     55   
     56 };