aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kbdfans/kbdpad/mk1/mk1.c
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2020-01-19 18:00:32 +1100
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-01-18 23:00:32 -0800
commitf5209aa4e941c7f3a942ef4a7e256ab432ec98ce (patch)
tree29c2a0d197050ff2accb920731ddb1d022cb2a90 /keyboards/kbdfans/kbdpad/mk1/mk1.c
parenteb5d267e637db4c2c639932b8c8176bf47dff78f (diff)
downloadqmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.tar.gz
qmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.zip
Remove custom backlight code for PS2AVRGB boards (#7775)
* Remove custom backlight code for PS2AVRGB boards * Remove custom driver setting * BACKLIGHT_BREATHING goes in config.h, not here * Don't need to include backlight.c again here either * Turn on backlight for Canoe * Disable console on a few boards due to oversize
Diffstat (limited to 'keyboards/kbdfans/kbdpad/mk1/mk1.c')
-rw-r--r--keyboards/kbdfans/kbdpad/mk1/mk1.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/keyboards/kbdfans/kbdpad/mk1/mk1.c b/keyboards/kbdfans/kbdpad/mk1/mk1.c
index aa781875c..f5fe47741 100644
--- a/keyboards/kbdfans/kbdpad/mk1/mk1.c
+++ b/keyboards/kbdfans/kbdpad/mk1/mk1.c
@@ -16,14 +16,19 @@
16 16
17#include "mk1.h" 17#include "mk1.h"
18 18
19#define NUMLOCK_PIN D0 19void keyboard_pre_init_kb(void) {
20 led_init_ports();
21 keyboard_pre_init_user();
22}
20 23
21void matrix_init_kb(void) { 24void led_init_ports(void) {
22 setPinOutput(NUMLOCK_PIN); 25 setPinOutput(D0);
23 matrix_init_user(); 26 writePinHigh(D0);
24} 27}
25 28
26void led_set_kb(uint8_t usb_led) { 29bool led_update_kb(led_t led_state) {
27 writePin(NUMLOCK_PIN, IS_LED_ON(usb_led, USB_LED_NUM_LOCK)); 30 if (led_update_user(led_state)) {
28 led_set_user(usb_led); 31 writePin(D0, !led_state.num_lock);
32 }
33 return true;
29} 34}