diff options
Diffstat (limited to 'keyboards/kmac/kmac.c')
-rw-r--r-- | keyboards/kmac/kmac.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/keyboards/kmac/kmac.c b/keyboards/kmac/kmac.c index dcbbc2f17..78334cb75 100644 --- a/keyboards/kmac/kmac.c +++ b/keyboards/kmac/kmac.c | |||
@@ -15,62 +15,9 @@ | |||
15 | */ | 15 | */ |
16 | #include "kmac.h" | 16 | #include "kmac.h" |
17 | 17 | ||
18 | #define CAPS_PIN B0 | ||
19 | #define SCROLL_PIN E6 | ||
20 | #define F_ROW_MASK 0b01 | 18 | #define F_ROW_MASK 0b01 |
21 | #define WASD_MASK 0b10 | 19 | #define WASD_MASK 0b10 |
22 | 20 | ||
23 | // Optional override functions below. | ||
24 | // You can leave any or all of these undefined. | ||
25 | // These are only required if you want to perform custom actions. | ||
26 | |||
27 | void matrix_init_kb(void) { | ||
28 | // put your keyboard start-up code here | ||
29 | // runs once when the firmware starts up | ||
30 | setPinOutput(CAPS_PIN); | ||
31 | setPinOutput(SCROLL_PIN); | ||
32 | |||
33 | matrix_init_user(); | ||
34 | } | ||
35 | |||
36 | /* | ||
37 | |||
38 | void matrix_scan_kb(void) { | ||
39 | // put your looping keyboard code here | ||
40 | // runs every cycle (a lot) | ||
41 | |||
42 | matrix_scan_user(); | ||
43 | } | ||
44 | |||
45 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
46 | // put your per-action keyboard code here | ||
47 | // runs for every action, just before processing by the firmware | ||
48 | |||
49 | return process_record_user(keycode, record); | ||
50 | } | ||
51 | |||
52 | */ | ||
53 | |||
54 | /* LED pin configuration | ||
55 | * Scroll Lock: Low PE6 | ||
56 | * Caps Lock: Low PB0 | ||
57 | */ | ||
58 | void led_set_kb(uint8_t usb_led) { | ||
59 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
60 | writePinLow(CAPS_PIN); | ||
61 | } else { | ||
62 | writePinHigh(CAPS_PIN); | ||
63 | } | ||
64 | |||
65 | if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { | ||
66 | writePinLow(SCROLL_PIN); | ||
67 | } else { | ||
68 | writePinHigh(SCROLL_PIN); | ||
69 | } | ||
70 | |||
71 | led_set_user(usb_led); | ||
72 | } | ||
73 | |||
74 | void backlight_init_ports(void) { | 21 | void backlight_init_ports(void) { |
75 | setPinOutput(B1); | 22 | setPinOutput(B1); |
76 | setPinOutput(B2); | 23 | setPinOutput(B2); |