aboutsummaryrefslogtreecommitdiff
path: root/keyboards/amjpad/amjpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/amjpad/amjpad.c')
-rw-r--r--keyboards/amjpad/amjpad.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/keyboards/amjpad/amjpad.c b/keyboards/amjpad/amjpad.c
index ac5991bd0..83cdedf68 100644
--- a/keyboards/amjpad/amjpad.c
+++ b/keyboards/amjpad/amjpad.c
@@ -1,30 +1 @@
1#include "amjpad.h" #include "amjpad.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 led_init_ports();
9};
10
11void matrix_scan_kb(void) {
12 // put your looping keyboard code here
13 // runs every cycle (a lot)
14 matrix_scan_user();
15};
16
17void led_init_ports(void) {
18 // * Set our LED pins as output
19 DDRD |= (1<<6);
20}
21
22void led_set_kb(uint8_t usb_led) {
23 if (usb_led & (1<<USB_LED_NUM_LOCK)) {
24 // Turn numlock on
25 PORTD &= ~(1<<6);
26 } else {
27 // Turn numlock off
28 PORTD |= (1<<6);
29 }
30}