diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-06-17 20:14:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-17 20:14:05 -0400 |
| commit | 82372d36af42866d418343a56fd254d1bda6d40c (patch) | |
| tree | 980aa42c4ca91982540df00499aa570a1f8fa125 | |
| parent | 98316ef0170c6e0f994a45e1f62959ae0f278177 (diff) | |
| parent | df26ede1313c4f20805be60f534dbfcac54527ba (diff) | |
| download | qmk_firmware-82372d36af42866d418343a56fd254d1bda6d40c.tar.gz qmk_firmware-82372d36af42866d418343a56fd254d1bda6d40c.zip | |
Merge pull request #1403 from Wraul/kmac-fixes
KMAC fixes
| -rw-r--r-- | keyboards/kmac/keymaps/default/Makefile | 8 | ||||
| -rw-r--r-- | keyboards/kmac/keymaps/default/keymap.c | 78 | ||||
| -rw-r--r-- | keyboards/kmac/keymaps/default/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/kmac/keymaps/winkeyless/Makefile | 8 | ||||
| -rw-r--r-- | keyboards/kmac/keymaps/winkeyless/keymap.c | 78 | ||||
| -rw-r--r-- | keyboards/kmac/keymaps/winkeyless/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/kmac/kmac.c | 26 | ||||
| -rw-r--r-- | keyboards/kmac/matrix.c | 2 | ||||
| -rw-r--r-- | keyboards/kmac/rules.mk | 4 |
9 files changed, 104 insertions, 104 deletions
diff --git a/keyboards/kmac/keymaps/default/Makefile b/keyboards/kmac/keymaps/default/Makefile index a8a44889d..8e2d011b3 100644 --- a/keyboards/kmac/keymaps/default/Makefile +++ b/keyboards/kmac/keymaps/default/Makefile | |||
| @@ -15,13 +15,13 @@ | |||
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | # QMK Build Options | 17 | # QMK Build Options |
| 18 | # change to "no" to disable the options, or define them in the Makefile in | 18 | # change to "no" to disable the options, or define them in the Makefile in |
| 19 | # the appropriate keymap folder that will get included automatically | 19 | # the appropriate keymap folder that will get included automatically |
| 20 | # | 20 | # |
| 21 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 21 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 22 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 22 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 23 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 23 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 24 | CONSOLE_ENABLE = yes # Console for debug(+400) | 24 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 25 | COMMAND_ENABLE = yes # Commands for debug and configuration | 25 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 26 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 26 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 27 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 27 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| @@ -29,9 +29,9 @@ MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | |||
| 29 | AUDIO_ENABLE = no # Audio output on port C6 | 29 | AUDIO_ENABLE = no # Audio output on port C6 |
| 30 | UNICODE_ENABLE = no # Unicode | 30 | UNICODE_ENABLE = no # Unicode |
| 31 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 31 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 32 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 32 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 33 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 33 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 34 | 34 | ||
| 35 | ifndef QUANTUM_DIR | 35 | ifndef QUANTUM_DIR |
| 36 | include ../../../../Makefile | 36 | include ../../../../Makefile |
| 37 | endif | 37 | endif |
diff --git a/keyboards/kmac/keymaps/default/keymap.c b/keyboards/kmac/keymaps/default/keymap.c index 3553e8492..f3ac93abf 100644 --- a/keyboards/kmac/keymaps/default/keymap.c +++ b/keyboards/kmac/keymaps/default/keymap.c | |||
| @@ -26,22 +26,22 @@ | |||
| 26 | #define _FL 1 | 26 | #define _FL 1 |
| 27 | 27 | ||
| 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 29 | [_BL] = KEYMAP( | 29 | [_BL] = KEYMAP( |
| 30 | KC_ESC, 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, KC_SLCK, KC_BRK, \ | 30 | KC_ESC, 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, KC_SLCK, KC_BRK, \ |
| 31 | KC_GRV, 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_INS, KC_HOME, KC_PGUP, \ | 31 | KC_GRV, 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_INS, KC_HOME, KC_PGUP, \ |
| 32 | 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, KC_END, KC_PGDN, \ | 32 | 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, KC_END, KC_PGDN, \ |
| 33 | 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, \ | 33 | 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, \ |
| 34 | 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, \ | 34 | 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, \ |
| 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ | 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ |
| 36 | ), | 36 | ), |
| 37 | [_FL] = KEYMAP( | 37 | [_FL] = KEYMAP( |
| 38 | BL_STEP, M(0), M(1), M(2), M(3), M(4), M(5), M(6), M(7), M(8), M(9), M(10), M(11), _______, _______, _______, \ | 38 | BL_STEP, M(0), M(1), M(2), M(3), M(4), M(5), M(6), M(7), M(8), M(9), M(10), M(11), _______, _______, _______, \ |
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ |
| 44 | ), | 44 | ), |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | const uint16_t PROGMEM fn_actions[] = { | 47 | const uint16_t PROGMEM fn_actions[] = { |
| @@ -50,32 +50,32 @@ const uint16_t PROGMEM fn_actions[] = { | |||
| 50 | 50 | ||
| 51 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | 51 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) |
| 52 | { | 52 | { |
| 53 | // MACRODOWN only works in this function | 53 | // MACRODOWN only works in this function |
| 54 | switch(id) { | 54 | switch(id) { |
| 55 | case 0: | 55 | case 0: |
| 56 | if (record->event.pressed) { | 56 | if (record->event.pressed) { |
| 57 | SEND_STRING("The"); | 57 | SEND_STRING("The"); |
| 58 | return false; | 58 | return false; |
| 59 | } | 59 | } |
| 60 | break; | 60 | break; |
| 61 | case 1: | 61 | case 1: |
| 62 | if (record->event.pressed) { | 62 | if (record->event.pressed) { |
| 63 | SEND_STRING("Custom"); | 63 | SEND_STRING("Custom"); |
| 64 | return false; | 64 | return false; |
| 65 | } | 65 | } |
| 66 | break; | 66 | break; |
| 67 | case 2: | 67 | case 2: |
| 68 | if (record->event.pressed) { | 68 | if (record->event.pressed) { |
| 69 | SEND_STRING("Keyboard"); | 69 | SEND_STRING("Keyboard"); |
| 70 | return false; | 70 | return false; |
| 71 | } | 71 | } |
| 72 | break; | 72 | break; |
| 73 | case 3: | 73 | case 3: |
| 74 | if (record->event.pressed) { | 74 | if (record->event.pressed) { |
| 75 | return MACRO( D(LCTL), T(C), U(LCTL), T(RGHT), D(LCTL), T(V), U(LCTL), END ); | 75 | return MACRO( D(LCTL), T(C), U(LCTL), T(RGHT), D(LCTL), T(V), U(LCTL), END ); |
| 76 | } | 76 | } |
| 77 | break; | 77 | break; |
| 78 | } | 78 | } |
| 79 | return MACRO_NONE; | 79 | return MACRO_NONE; |
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| @@ -89,7 +89,7 @@ void matrix_scan_user(void) { | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 91 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 92 | return true; | 92 | return true; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void led_set_user(uint8_t usb_led) { | 95 | void led_set_user(uint8_t usb_led) { |
diff --git a/keyboards/kmac/keymaps/default/readme.md b/keyboards/kmac/keymaps/default/readme.md index d384e0d6a..aaa6f9bf2 100644 --- a/keyboards/kmac/keymaps/default/readme.md +++ b/keyboards/kmac/keymaps/default/readme.md | |||
| @@ -6,7 +6,7 @@ See [keymap.c](keymap.c) for details. | |||
| 6 | 6 | ||
| 7 | ## Layers | 7 | ## Layers |
| 8 | 8 | ||
| 9 | The keymap have two layers. To access the functions on the second layer, hold down caps lock and press the corresponding key. | 9 | The keymap have two layers. To access the functions on the second layer, hold down `Fn` and press the corresponding key. |
| 10 | 10 | ||
| 11 | ### Layer 1: Default Layer | 11 | ### Layer 1: Default Layer |
| 12 | ,---. ,---------------. ,---------------. ,---------------. ,-----------. | 12 | ,---. ,---------------. ,---------------. ,---------------. ,-----------. |
diff --git a/keyboards/kmac/keymaps/winkeyless/Makefile b/keyboards/kmac/keymaps/winkeyless/Makefile index a8a44889d..8e2d011b3 100644 --- a/keyboards/kmac/keymaps/winkeyless/Makefile +++ b/keyboards/kmac/keymaps/winkeyless/Makefile | |||
| @@ -15,13 +15,13 @@ | |||
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | # QMK Build Options | 17 | # QMK Build Options |
| 18 | # change to "no" to disable the options, or define them in the Makefile in | 18 | # change to "no" to disable the options, or define them in the Makefile in |
| 19 | # the appropriate keymap folder that will get included automatically | 19 | # the appropriate keymap folder that will get included automatically |
| 20 | # | 20 | # |
| 21 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 21 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 22 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 22 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 23 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 23 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 24 | CONSOLE_ENABLE = yes # Console for debug(+400) | 24 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 25 | COMMAND_ENABLE = yes # Commands for debug and configuration | 25 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 26 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 26 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 27 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 27 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| @@ -29,9 +29,9 @@ MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | |||
| 29 | AUDIO_ENABLE = no # Audio output on port C6 | 29 | AUDIO_ENABLE = no # Audio output on port C6 |
| 30 | UNICODE_ENABLE = no # Unicode | 30 | UNICODE_ENABLE = no # Unicode |
| 31 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 31 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 32 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 32 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 33 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 33 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 34 | 34 | ||
| 35 | ifndef QUANTUM_DIR | 35 | ifndef QUANTUM_DIR |
| 36 | include ../../../../Makefile | 36 | include ../../../../Makefile |
| 37 | endif | 37 | endif |
diff --git a/keyboards/kmac/keymaps/winkeyless/keymap.c b/keyboards/kmac/keymaps/winkeyless/keymap.c index f986dec27..e3d66ea08 100644 --- a/keyboards/kmac/keymaps/winkeyless/keymap.c +++ b/keyboards/kmac/keymaps/winkeyless/keymap.c | |||
| @@ -26,22 +26,22 @@ | |||
| 26 | #define _FL 1 | 26 | #define _FL 1 |
| 27 | 27 | ||
| 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 29 | [_BL] = KEYMAP_WINKEYLESS( | 29 | [_BL] = KEYMAP_WINKEYLESS( |
| 30 | KC_ESC, 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, KC_SLCK, KC_BRK, \ | 30 | KC_ESC, 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, KC_SLCK, KC_BRK, \ |
| 31 | KC_GRV, 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_INS, KC_HOME, KC_PGUP, \ | 31 | KC_GRV, 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_INS, KC_HOME, KC_PGUP, \ |
| 32 | 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, KC_END, KC_PGDN, \ | 32 | 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, KC_END, KC_PGDN, \ |
| 33 | 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, \ | 33 | 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, \ |
| 34 | 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, \ | 34 | 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, \ |
| 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ | 35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ |
| 36 | ), | 36 | ), |
| 37 | [_FL] = KEYMAP_WINKEYLESS( | 37 | [_FL] = KEYMAP_WINKEYLESS( |
| 38 | BL_STEP, M(0), M(1), M(2), M(3), M(4), M(5), M(6), M(7), M(8), M(9), M(10), M(11), _______, _______, _______, \ | 38 | BL_STEP, M(0), M(1), M(2), M(3), M(4), M(5), M(6), M(7), M(8), M(9), M(10), M(11), _______, _______, _______, \ |
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ |
| 44 | ), | 44 | ), |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | const uint16_t PROGMEM fn_actions[] = { | 47 | const uint16_t PROGMEM fn_actions[] = { |
| @@ -50,32 +50,32 @@ const uint16_t PROGMEM fn_actions[] = { | |||
| 50 | 50 | ||
| 51 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | 51 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) |
| 52 | { | 52 | { |
| 53 | // MACRODOWN only works in this function | 53 | // MACRODOWN only works in this function |
| 54 | switch(id) { | 54 | switch(id) { |
| 55 | case 0: | 55 | case 0: |
| 56 | if (record->event.pressed) { | 56 | if (record->event.pressed) { |
| 57 | SEND_STRING("The"); | 57 | SEND_STRING("The"); |
| 58 | return false; | 58 | return false; |
| 59 | } | 59 | } |
| 60 | break; | 60 | break; |
| 61 | case 1: | 61 | case 1: |
| 62 | if (record->event.pressed) { | 62 | if (record->event.pressed) { |
| 63 | SEND_STRING("Custom"); | 63 | SEND_STRING("Custom"); |
| 64 | return false; | 64 | return false; |
| 65 | } | 65 | } |
| 66 | break; | 66 | break; |
| 67 | case 2: | 67 | case 2: |
| 68 | if (record->event.pressed) { | 68 | if (record->event.pressed) { |
| 69 | SEND_STRING("Keyboard"); | 69 | SEND_STRING("Keyboard"); |
| 70 | return false; | 70 | return false; |
| 71 | } | 71 | } |
| 72 | break; | 72 | break; |
| 73 | case 3: | 73 | case 3: |
| 74 | if (record->event.pressed) { | 74 | if (record->event.pressed) { |
| 75 | return MACRO( D(LCTL), T(C), U(LCTL), T(RGHT), D(LCTL), T(V), U(LCTL), END ); | 75 | return MACRO( D(LCTL), T(C), U(LCTL), T(RGHT), D(LCTL), T(V), U(LCTL), END ); |
| 76 | } | 76 | } |
| 77 | break; | 77 | break; |
| 78 | } | 78 | } |
| 79 | return MACRO_NONE; | 79 | return MACRO_NONE; |
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| @@ -89,7 +89,7 @@ void matrix_scan_user(void) { | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 91 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 92 | return true; | 92 | return true; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void led_set_user(uint8_t usb_led) { | 95 | void led_set_user(uint8_t usb_led) { |
diff --git a/keyboards/kmac/keymaps/winkeyless/readme.md b/keyboards/kmac/keymaps/winkeyless/readme.md index b921f7b0f..9c579e9f5 100644 --- a/keyboards/kmac/keymaps/winkeyless/readme.md +++ b/keyboards/kmac/keymaps/winkeyless/readme.md | |||
| @@ -7,7 +7,7 @@ See [keymap.c](keymap.c) for details. | |||
| 7 | 7 | ||
| 8 | ## Layers | 8 | ## Layers |
| 9 | 9 | ||
| 10 | The keymap have two layers. To access the functions on the second layer, hold down caps lock and press the corresponding key. | 10 | The keymap have two layers. To access the functions on the second layer, hold down `Fn` and press the corresponding key. |
| 11 | 11 | ||
| 12 | ### Layer 1: Default Layer | 12 | ### Layer 1: Default Layer |
| 13 | ,---. ,---------------. ,---------------. ,---------------. ,-----------. | 13 | ,---. ,---------------. ,---------------. ,---------------. ,-----------. |
diff --git a/keyboards/kmac/kmac.c b/keyboards/kmac/kmac.c index 34647e81a..6b54294b4 100644 --- a/keyboards/kmac/kmac.c +++ b/keyboards/kmac/kmac.c | |||
| @@ -16,24 +16,24 @@ | |||
| 16 | #include "kmac.h" | 16 | #include "kmac.h" |
| 17 | 17 | ||
| 18 | void matrix_init_kb(void) { | 18 | void matrix_init_kb(void) { |
| 19 | // put your keyboard start-up code here | 19 | // put your keyboard start-up code here |
| 20 | // runs once when the firmware starts up | 20 | // runs once when the firmware starts up |
| 21 | led_init_ports(); | 21 | led_init_ports(); |
| 22 | matrix_init_user(); | 22 | matrix_init_user(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | void matrix_scan_kb(void) { | 25 | void matrix_scan_kb(void) { |
| 26 | // put your looping keyboard code here | 26 | // put your looping keyboard code here |
| 27 | // runs every cycle (a lot) | 27 | // runs every cycle (a lot) |
| 28 | 28 | ||
| 29 | matrix_scan_user(); | 29 | matrix_scan_user(); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
| 33 | // put your per-action keyboard code here | 33 | // put your per-action keyboard code here |
| 34 | // runs for every action, just before processing by the firmware | 34 | // runs for every action, just before processing by the firmware |
| 35 | 35 | ||
| 36 | return process_record_user(keycode, record); | 36 | return process_record_user(keycode, record); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void led_init_ports(void) { | 39 | void led_init_ports(void) { |
| @@ -64,12 +64,12 @@ void led_set_kb(uint8_t usb_led) { | |||
| 64 | PORTE |= (1<<6); // HI | 64 | PORTE |= (1<<6); // HI |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | led_set_user(usb_led); | 67 | led_set_user(usb_led); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | void backlight_init_ports(void) { | 70 | void backlight_init_ports(void) { |
| 71 | DDRB |= (1<<1) | (1<<2) | (1<<3) | (1<<4); // OUT | 71 | DDRB |= (1<<1) | (1<<2) | (1<<3) | (1<<4); // OUT |
| 72 | DDRD |= (1<<7); // OUT | 72 | DDRD |= (1<<7); // OUT |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | /* Backlight pin configuration | 75 | /* Backlight pin configuration |
diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c index bab638bdf..cfafa90e6 100644 --- a/keyboards/kmac/matrix.c +++ b/keyboards/kmac/matrix.c | |||
| @@ -103,7 +103,7 @@ bool matrix_is_on(uint8_t row, uint8_t col) | |||
| 103 | inline | 103 | inline |
| 104 | matrix_row_t matrix_get_row(uint8_t row) | 104 | matrix_row_t matrix_get_row(uint8_t row) |
| 105 | { | 105 | { |
| 106 | return matrix[row]; | 106 | return matrix[row]; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | void matrix_print(void) | 109 | void matrix_print(void) |
diff --git a/keyboards/kmac/rules.mk b/keyboards/kmac/rules.mk index 54c9aa256..2305de412 100644 --- a/keyboards/kmac/rules.mk +++ b/keyboards/kmac/rules.mk | |||
| @@ -57,14 +57,14 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096 | |||
| 57 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) | 57 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) |
| 58 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | 58 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) |
| 59 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | 59 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) |
| 60 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | 60 | CONSOLE_ENABLE ?= no # Console for debug(+400) |
| 61 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | 61 | COMMAND_ENABLE ?= yes # Commands for debug and configuration |
| 62 | CUSTOM_MATRIX ?= yes # Custom matrix file | 62 | CUSTOM_MATRIX ?= yes # Custom matrix file |
| 63 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 63 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 64 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | 64 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend |
| 65 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 65 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 66 | NKRO_ENABLE ?= yes # USB Nkey Rollover | 66 | NKRO_ENABLE ?= yes # USB Nkey Rollover |
| 67 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | 67 | BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality |
| 68 | MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config) | 68 | MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config) |
| 69 | UNICODE_ENABLE ?= no # Unicode | 69 | UNICODE_ENABLE ?= no # Unicode |
| 70 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | 70 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID |
