From 74d86832c3ff5107daa015bdb7709af6256a462c Mon Sep 17 00:00:00 2001 From: MechMerlin <30334081+mechmerlin@users.noreply.github.com> Date: Fri, 1 Jun 2018 08:58:30 -0700 Subject: Put CA66 and PK60 under a playkbtw directory (#3102) * Add playkbtw directory to put ca66 and pk60 in * delete old references * edit readmes for links --- keyboards/playkbtw/pk60/pk60.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 keyboards/playkbtw/pk60/pk60.c (limited to 'keyboards/playkbtw/pk60/pk60.c') diff --git a/keyboards/playkbtw/pk60/pk60.c b/keyboards/playkbtw/pk60/pk60.c new file mode 100644 index 000000000..a9da0ff22 --- /dev/null +++ b/keyboards/playkbtw/pk60/pk60.c @@ -0,0 +1,35 @@ +#include "pk60.h" +#include "led.h" + +void matrix_init_kb (void) { + + matrix_init_user(); + led_init_ports(); + +} + +void matrix_scan_kb(void) { + + matrix_scan_user(); + +}; + +void led_init_ports(void) { + // Set capslock LED pin as pinout + DDRF |= (1 << 4); + PORTF |= (1 << 4); + +} + +void led_set_kb(uint8_t usb_led) { + + if (usb_led & (1<