]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/sixkeyboard/keymaps/default/keymap.c
Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432)
[qmk_firmware.git] / keyboards / sixkeyboard / keymaps / default / keymap.c
1 // This is the canonical layout file for the Quantum project. If you want to add another keyboard,
2 // this is the style you want to emulate.
3
4 #include "sixkeyboard.h"
5 #include "matrix.h"
6
7 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8 [0] = {
9         {KC_A, KC_B, KC_C},
10   {KC_D, KC_E, KC_F}
11   }
12 };
13
14 const uint16_t PROGMEM fn_actions[] = {
15
16 };
17
18 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
19 {
20   // MACRODOWN only works in this function
21       switch(id) {
22         case 0:
23           if (record->event.pressed) {
24             register_code(KC_RSFT);
25           } else {
26             unregister_code(KC_RSFT);
27           }
28         break;
29       }
30     return MACRO_NONE;
31 };
32
33 void matrix_scan_user(void) {
34   // jump to bootloaer when all keys are pressed
35   if (matrix_get_row(0) == 0b111 && matrix_get_row(1) == 0b111) {
36     clear_keyboard();
37     bootloader_jump();
38   }
39 };