From b1e01e9d1ffcc6ca0803f30c09d3eebe6a90186b Mon Sep 17 00:00:00 2001 From: Geoff Lane Date: Sat, 10 Jun 2017 21:04:16 -0400 Subject: Support Sentraq S65-X Add initial support for ANSI layout of S65-X. Includes support for controlling RGB underlighting. --- keyboards/s65_x/s65_x.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 keyboards/s65_x/s65_x.c (limited to 'keyboards/s65_x/s65_x.c') diff --git a/keyboards/s65_x/s65_x.c b/keyboards/s65_x/s65_x.c new file mode 100644 index 000000000..f3f8ffbc8 --- /dev/null +++ b/keyboards/s65_x/s65_x.c @@ -0,0 +1,30 @@ +#include "s65_x.h" +#include "led.h" + +void matrix_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + matrix_init_user(); + led_init_ports(); +}; + +void matrix_scan_kb(void) { + // put your looping keyboard code here + // runs every cycle (a lot) + matrix_scan_user(); +}; + +void led_init_ports(void) { + // * Set our LED pins as output + DDRB |= (1<<7); +} + +void led_set_kb(uint8_t usb_led) { + if (usb_led & (1<