From 230c70e28515d294fcad68e924f0a557a197f40a Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 7 May 2017 22:56:27 +0200 Subject: - Initial commit for branch DK60 --- keyboards/dk60/dk60.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 keyboards/dk60/dk60.c (limited to 'keyboards/dk60/dk60.c') diff --git a/keyboards/dk60/dk60.c b/keyboards/dk60/dk60.c new file mode 100644 index 0000000000..40fee6f70e --- /dev/null +++ b/keyboards/dk60/dk60.c @@ -0,0 +1,13 @@ +#include "dk60.h" + +void led_set_kb(uint8_t usb_led) { + // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + + if (usb_led & (1< Date: Tue, 30 May 2017 16:59:56 +0200 Subject: - Some changes on DK60 --- keyboards/dk60/dk60.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/dk60/dk60.c') diff --git a/keyboards/dk60/dk60.c b/keyboards/dk60/dk60.c index 40fee6f70e..40f24c2877 100644 --- a/keyboards/dk60/dk60.c +++ b/keyboards/dk60/dk60.c @@ -10,4 +10,4 @@ void led_set_kb(uint8_t usb_led) { } led_set_user(usb_led); -} \ No newline at end of file +} -- cgit v1.2.3 From e280f7aad7cb0abeaae2cfeb47bba02d4b83875e Mon Sep 17 00:00:00 2001 From: Damien Broqua Date: Tue, 30 May 2017 22:13:34 +0200 Subject: - Added Capslock/Esc led --- keyboards/dk60/dk60.c | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'keyboards/dk60/dk60.c') diff --git a/keyboards/dk60/dk60.c b/keyboards/dk60/dk60.c index 40f24c2877..93aeb33b4a 100644 --- a/keyboards/dk60/dk60.c +++ b/keyboards/dk60/dk60.c @@ -1,13 +1,34 @@ #include "dk60.h" -void led_set_kb(uint8_t usb_led) { - // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here +void dk60_blink_all_leds(void) +{ + dk60_led_all_off(); + dk60_led_all_on(); + _delay_ms(500); + dk60_led_all_off(); +} + +void matrix_init_kb(void) { + led_init_ports(); + dk60_blink_all_leds(); + + matrix_init_user(); +} + +void led_init_ports(void) { + // * Set our LED pins as output + DDRE |= (1<<6); + DDRF |= (1<<0); +} - if (usb_led & (1<