]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/s65_x/s65_x.c
Do some cleanup for the API
[qmk_firmware.git] / keyboards / s65_x / s65_x.c
1 #include "s65_x.h"
2 #include "led.h"
3
4 void 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
10 void matrix_scan_kb(void) {
11   // put your looping keyboard code here
12   // runs every cycle (a lot)
13   matrix_scan_user();
14 };
15
16 void 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 }