aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-06-17 20:14:05 -0400
committerGitHub <noreply@github.com>2017-06-17 20:14:05 -0400
commit82372d36af42866d418343a56fd254d1bda6d40c (patch)
tree980aa42c4ca91982540df00499aa570a1f8fa125
parent98316ef0170c6e0f994a45e1f62959ae0f278177 (diff)
parentdf26ede1313c4f20805be60f534dbfcac54527ba (diff)
downloadqmk_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/Makefile8
-rw-r--r--keyboards/kmac/keymaps/default/keymap.c78
-rw-r--r--keyboards/kmac/keymaps/default/readme.md2
-rw-r--r--keyboards/kmac/keymaps/winkeyless/Makefile8
-rw-r--r--keyboards/kmac/keymaps/winkeyless/keymap.c78
-rw-r--r--keyboards/kmac/keymaps/winkeyless/readme.md2
-rw-r--r--keyboards/kmac/kmac.c26
-rw-r--r--keyboards/kmac/matrix.c2
-rw-r--r--keyboards/kmac/rules.mk4
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#
21BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 21BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
22MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 22MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
23EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 23EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
24CONSOLE_ENABLE = yes # Console for debug(+400) 24CONSOLE_ENABLE = no # Console for debug(+400)
25COMMAND_ENABLE = yes # Commands for debug and configuration 25COMMAND_ENABLE = yes # Commands for debug and configuration
26NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 26NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
27BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 27BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
@@ -29,9 +29,9 @@ MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
29AUDIO_ENABLE = no # Audio output on port C6 29AUDIO_ENABLE = no # Audio output on port C6
30UNICODE_ENABLE = no # Unicode 30UNICODE_ENABLE = no # Unicode
31BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 31BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
32RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 32RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
34 34
35ifndef QUANTUM_DIR 35ifndef QUANTUM_DIR
36 include ../../../../Makefile 36 include ../../../../Makefile
37endif 37endif
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
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 28const 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
47const uint16_t PROGMEM fn_actions[] = { 47const uint16_t PROGMEM fn_actions[] = {
@@ -50,32 +50,32 @@ const uint16_t PROGMEM fn_actions[] = {
50 50
51const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) 51const 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
91bool process_record_user(uint16_t keycode, keyrecord_t *record) { 91bool process_record_user(uint16_t keycode, keyrecord_t *record) {
92 return true; 92 return true;
93} 93}
94 94
95void led_set_user(uint8_t usb_led) { 95void 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
9The keymap have two layers. To access the functions on the second layer, hold down caps lock and press the corresponding key. 9The 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#
21BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 21BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
22MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 22MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
23EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 23EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
24CONSOLE_ENABLE = yes # Console for debug(+400) 24CONSOLE_ENABLE = no # Console for debug(+400)
25COMMAND_ENABLE = yes # Commands for debug and configuration 25COMMAND_ENABLE = yes # Commands for debug and configuration
26NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 26NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
27BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 27BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
@@ -29,9 +29,9 @@ MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
29AUDIO_ENABLE = no # Audio output on port C6 29AUDIO_ENABLE = no # Audio output on port C6
30UNICODE_ENABLE = no # Unicode 30UNICODE_ENABLE = no # Unicode
31BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 31BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
32RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 32RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
34 34
35ifndef QUANTUM_DIR 35ifndef QUANTUM_DIR
36 include ../../../../Makefile 36 include ../../../../Makefile
37endif 37endif
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
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 28const 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
47const uint16_t PROGMEM fn_actions[] = { 47const uint16_t PROGMEM fn_actions[] = {
@@ -50,32 +50,32 @@ const uint16_t PROGMEM fn_actions[] = {
50 50
51const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) 51const 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
91bool process_record_user(uint16_t keycode, keyrecord_t *record) { 91bool process_record_user(uint16_t keycode, keyrecord_t *record) {
92 return true; 92 return true;
93} 93}
94 94
95void led_set_user(uint8_t usb_led) { 95void 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
10The keymap have two layers. To access the functions on the second layer, hold down caps lock and press the corresponding key. 10The 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
18void matrix_init_kb(void) { 18void 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
25void matrix_scan_kb(void) { 25void 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
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) { 32bool 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
39void led_init_ports(void) { 39void 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
70void backlight_init_ports(void) { 70void 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)
103inline 103inline
104matrix_row_t matrix_get_row(uint8_t row) 104matrix_row_t matrix_get_row(uint8_t row)
105{ 105{
106 return matrix[row]; 106 return matrix[row];
107} 107}
108 108
109void matrix_print(void) 109void 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
57BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) 57BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
58MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) 58MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
59EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) 59EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
60CONSOLE_ENABLE ?= yes # Console for debug(+400) 60CONSOLE_ENABLE ?= no # Console for debug(+400)
61COMMAND_ENABLE ?= yes # Commands for debug and configuration 61COMMAND_ENABLE ?= yes # Commands for debug and configuration
62CUSTOM_MATRIX ?= yes # Custom matrix file 62CUSTOM_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
64SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend 64SLEEP_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
66NKRO_ENABLE ?= yes # USB Nkey Rollover 66NKRO_ENABLE ?= yes # USB Nkey Rollover
67BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality 67BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
68MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config) 68MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config)
69UNICODE_ENABLE ?= no # Unicode 69UNICODE_ENABLE ?= no # Unicode
70BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID 70BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID