summaryrefslogtreecommitdiff
path: root/keyboards/noxary/268_2/268_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/noxary/268_2/268_2.c')
-rw-r--r--keyboards/noxary/268_2/268_2.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/keyboards/noxary/268_2/268_2.c b/keyboards/noxary/268_2/268_2.c
index 5af56a386d..9a2b4432d3 100644
--- a/keyboards/noxary/268_2/268_2.c
+++ b/keyboards/noxary/268_2/268_2.c
@@ -15,13 +15,16 @@
*/
#include "268_2.h"
-void led_set_kb(uint8_t usb_led) {
- if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
- setPinOutput(B0);
- writePinHigh(B0);
- } else {
- setPinInput(B0);
- }
+void matrix_init_kb(void) {
+ // put your keyboard start-up code here
+ // runs once when the firmware starts up
+ setPinOutput(B0);
+ matrix_init_user();
+}
- led_set_user(usb_led);
+bool led_update_kb(led_t led_state) {
+ if(led_update_user(led_state)) {
+ writePin(B0, led_state.caps_lock);
+ }
+ return true;
}