aboutsummaryrefslogtreecommitdiff
path: root/keyboards/s65_plus/s65_plus.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/s65_plus/s65_plus.c')
-rw-r--r--keyboards/s65_plus/s65_plus.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/s65_plus/s65_plus.c b/keyboards/s65_plus/s65_plus.c
new file mode 100644
index 000000000..3eaaa3717
--- /dev/null
+++ b/keyboards/s65_plus/s65_plus.c
@@ -0,0 +1,24 @@
1#include "s65_plus.h"
2#include "led.h"
3
4void matrix_init_kb(void) {
5 // put your keyboard start-up code here
6 // runs once when the firmware starts up
7 matrix_init_user();
8};
9
10void matrix_scan_kb(void) {
11 // put your looping keyboard code here
12 // runs every cycle (a lot)
13 matrix_scan_user();
14};
15
16void led_set_kb(uint8_t usb_led) {
17 if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
18 // Turn capslock on
19 PORTB &= ~(1<<7);
20 } else {
21 // Turn capslock off
22 PORTB |= (1<<7);
23 }
24}