forked from forks/qmk_firmware
13bb6b4b7f
* redoes matrix pins, abstracts backlight code for B5,6,7 * slimming down keyboard stuff, backlight breathing implemented * don't call backlight init when no pin * cleans up user/kb/quantum calls, keyboard files * fix pvc atomic * replaces CHANNEL with correct var in breathing * removes .hexs, updates readmes, updates template * cleans-up clueboards, readmes to lowercase * updates readme
13 lines
253 B
C
13 lines
253 B
C
#include "clueboard1.h"
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
DDRF |= (1<<0);
|
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
// Turn capslock on
|
|
PORTF |= (1<<0);
|
|
} else {
|
|
// Turn capslock off
|
|
PORTF &= ~(1<<0);
|
|
}
|
|
}
|