aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xd96/xd96.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd96/xd96.c')
-rw-r--r--keyboards/xd96/xd96.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/keyboards/xd96/xd96.c b/keyboards/xd96/xd96.c
index e2af9f100..2c67ee3d7 100644
--- a/keyboards/xd96/xd96.c
+++ b/keyboards/xd96/xd96.c
@@ -14,29 +14,3 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "xd96.h" 16#include "xd96.h"
17
18#define CAPS_PIN B6
19#define NUMLOCK_PIN C6
20
21void keyboard_pre_init_kb(void) {
22 setPinOutput(CAPS_PIN);
23 setPinOutput(NUMLOCK_PIN);
24
25 keyboard_pre_init_user();
26}
27
28void led_set_kb(uint8_t usb_led) {
29 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
30 writePinLow(CAPS_PIN);
31 } else {
32 writePinHigh(CAPS_PIN);
33 }
34
35 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
36 writePinLow(NUMLOCK_PIN);
37 } else {
38 writePinHigh(NUMLOCK_PIN);
39 }
40
41 led_set_user(usb_led);
42}