mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-19 03:36:28 +00:00
e0a0430c31
* fix audio enable repetition * remove RGB LED support as this board has no RGB LB LEDs * use pragma once * this board has no backlight support * enable COMMAND_ENABLE * comment cleanups * setting bootmagic to lite as the first board thathat has this PCB has a solid bottom. If someone forgets to put in a RESET key on their keymap, they are not going to have fun resetting the board * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * convert the palset and palclear routines to setpinoutput and writepinlow * remove scankb * restore original guards instead of pragma once Co-authored-by: fauxpark <fauxpark@gmail.com>
45 lines
1 KiB
C
45 lines
1 KiB
C
#include "rev4.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 led_init_ports() {
|
|
// Set our LED pins as output
|
|
setPinOutput(B13); // LED1
|
|
writePinLow(B13);
|
|
|
|
setPinOutput(B14); // LED2
|
|
writePinLow(B14);
|
|
|
|
setPinOutput(B8); // LED3
|
|
writePinLow(B8);
|
|
|
|
setPinOutput(B0); // Capslock LED
|
|
writePinLow(B0);
|
|
}
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
|
|
palSetPad(GPIOB, 13); // LED1
|
|
} else {
|
|
palClearPad(GPIOB, 13); // LED1
|
|
}
|
|
|
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
palSetPad(GPIOA, 0); // Capslock LED
|
|
palSetPad(GPIOB, 14); // LED2
|
|
} else {
|
|
palClearPad(GPIOA, 0); // Capslock LED
|
|
palClearPad(GPIOB, 14); // LED2
|
|
}
|
|
|
|
if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
|
|
palSetPad(GPIOA, 8); // LED3
|
|
} else {
|
|
palClearPad(GPIOA, 8); // LED3
|
|
}
|
|
}
|