summaryrefslogtreecommitdiff
path: root/keyboards/noxary/268_2/268_2.c
diff options
context:
space:
mode:
authorRozakiin <6567067+Rozakiin@users.noreply.github.com>2020-06-23 07:24:33 +0100
committerGitHub <noreply@github.com>2020-06-22 23:24:33 -0700
commita8bb5840ad3e093b82e5c08fd594ab35c554a876 (patch)
treeb075e5fecce7292e591e74b531840da57cda80e9 /keyboards/noxary/268_2/268_2.c
parentd353fcb99cfe345cde29cb7dc94cceaab82c610b (diff)
Update VIA support for Noxary 268.2 (#9451)
* Update readme.md description * Enable bootmagic lite * Update USB descriptor * Add modern led code * Update default keymap for readability * Update default keymap readme with layout image * Add VIA keymap * Update keyboards/noxary/268_2/keymaps/default/readme.md Flip order of layout image and title * Update keyboards/noxary/268_2/keymaps/via/readme.md Flip order of layout image and title * Update keyboards/noxary/268_2/readme.md bullet point keyboard maintainer * Update keyboards/noxary/268_2/readme.md Change list style
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;
}