]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/noxary/268/keymaps/ansi/keymap.c
Remove redundant KC_TRNS and KC_NO fillers in default keymaps (#5152)
[qmk_firmware.git] / keyboards / noxary / 268 / keymaps / ansi / keymap.c
1 #include QMK_KEYBOARD_H
2
3 // Each layer gets a name for readability, which is then used in the keymap matrix below.
4 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
5 // Layer names don't all need to be of the same length, obviously, and you can also skip them
6 // entirely and just use numbers.
7 #define _BL 0
8 #define _FL1 1
9
10 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11   /* _BL: Base Layer (Default)
12    * ,----------------------------------------------------------------.
13    * |Esc | 1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|   BSpc| Grv|
14    * |----------------------------------------------------------------|
15    * |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|  \  | Del|
16    * |----------------------------------------------------------------|
17    * |Caps  |  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '|   Enter|PgUp|
18    * |----------------------------------------------------------------|
19    * |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  .|  /|Shift | Up|PgDn|
20    * |----------------------------------------------------------------|
21    * |Ctrl|Win |Alt |        Space           | Alt|  Fn|▓|Lef|Dow|Rght|
22    * `----------------------------------------------------------------'
23    */
24   [_BL] = LAYOUT_ansi(
25     KC_ESC,  KC_1,    KC_2,    KC_3,   KC_4,    KC_5,  KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    KC_MINS,  KC_EQL,           KC_BSPC, KC_GRV,
26     KC_TAB,  KC_Q,    KC_W,    KC_E,   KC_R,    KC_T,  KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,    KC_LBRC,  KC_RBRC,          KC_BSLS, KC_DEL,
27     KC_CAPS, KC_A,    KC_S,    KC_D,   KC_F,    KC_G,  KC_H,    KC_J,    KC_K,    KC_L,    KC_SCLN, KC_QUOT,                    KC_ENT,  KC_PGUP,
28     KC_LSFT,          KC_Z,    KC_X,   KC_C,    KC_V,  KC_B,    KC_N,    KC_M,    KC_COMM, KC_DOT,  KC_SLSH,  KC_RSFT,          KC_UP,   KC_PGDN,
29     KC_LCTL, KC_LGUI, KC_LALT,                         KC_SPC,                             KC_RALT, MO(_FL1),          KC_LEFT, KC_DOWN, KC_RGHT
30   ),
31
32   /* _FL1: Function Layer 1
33    * ,----------------------------------------------------------------.
34    * |  `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|   PScr|    |
35    * |----------------------------------------------------------------|
36    * |     |   |   |   |RST|   |   |   |   |   |   |   |   |     | Ins|
37    * |----------------------------------------------------------------|
38    * |      |   |   |   |   |   |   |   |   |   |   |   |        |Home|
39    * |----------------------------------------------------------------|
40    * |        |   |   |   |   |   |   |   |Bl-|Bl+|   |Mute |Vol+| End|
41    * |----------------------------------------------------------------|
42    * |    |    |    |      BL_Toggle         |    |    |▓|  |Vol-|    |
43    * `----------------------------------------------------------------'
44    */
45   [_FL1] = LAYOUT_ansi(
46     KC_GRV,  KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,   KC_F9,   KC_F10,  KC_F11,  KC_F12,           KC_PSCR, _______,
47     _______, _______, _______, _______, RESET,   _______, _______, _______, _______, _______, _______, _______, _______,          _______, KC_INS,
48     _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,                   _______, KC_HOME,
49     _______,          _______, _______, _______, _______, _______, _______, _______, BL_DEC,  BL_INC,  _______, KC_MUTE,          KC_VOLU, KC_END,
50     _______, _______, _______,                            BL_TOGG,                            _______, _______,          _______, KC_VOLD, _______
51   ),
52
53 };
54
55
56 void matrix_init_user(void) {
57 }
58
59 void matrix_scan_user(void) {
60 }
61
62 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
63   return true;
64 }
65
66 void led_set_user(uint8_t usb_led) {
67
68   if (usb_led & (1 << USB_LED_NUM_LOCK)) {
69
70   } else {
71
72   }
73
74   if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
75     DDRB |= (1 << 6);
76     PORTB |= (1 << 6);
77   } else {
78     DDRB &= ~(1 << 6);
79     PORTB &= ~(1 << 6);
80   }
81
82   if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
83
84   } else {
85
86   }
87
88   if (usb_led & (1 << USB_LED_COMPOSE)) {
89
90   } else {
91
92   }
93
94   if (usb_led & (1 << USB_LED_KANA)) {
95
96   } else {
97
98   }
99
100 }