summaryrefslogtreecommitdiff
path: root/keyboards/lazydesigners/the50
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lazydesigners/the50')
-rw-r--r--keyboards/lazydesigners/the50/config.h3
-rw-r--r--keyboards/lazydesigners/the50/info.json4
-rw-r--r--keyboards/lazydesigners/the50/keymaps/default/keymap.c5
-rw-r--r--keyboards/lazydesigners/the50/keymaps/mikethetiger/keymap.c5
4 files changed, 10 insertions, 7 deletions
diff --git a/keyboards/lazydesigners/the50/config.h b/keyboards/lazydesigners/the50/config.h
index 366d9d3325..5f36081323 100644
--- a/keyboards/lazydesigners/the50/config.h
+++ b/keyboards/lazydesigners/the50/config.h
@@ -5,6 +5,3 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-
-#define RGBLED_NUM 1
-#define RGBLIGHT_SLEEP
diff --git a/keyboards/lazydesigners/the50/info.json b/keyboards/lazydesigners/the50/info.json
index f29e8dfe0d..0c76516e80 100644
--- a/keyboards/lazydesigners/the50/info.json
+++ b/keyboards/lazydesigners/the50/info.json
@@ -17,6 +17,10 @@
"pin": "B6",
"levels": 6
},
+ "rgblight": {
+ "led_count": 1,
+ "sleep": true
+ },
"ws2812": {
"pin": "E6"
},
diff --git a/keyboards/lazydesigners/the50/keymaps/default/keymap.c b/keyboards/lazydesigners/the50/keymaps/default/keymap.c
index 5d8ea732f6..61e6ee878c 100644
--- a/keyboards/lazydesigners/the50/keymaps/default/keymap.c
+++ b/keyboards/lazydesigners/the50/keymaps/default/keymap.c
@@ -49,11 +49,12 @@ EE_CLR, _______, _______, _______, _______,
)
};
-void led_set_user(uint8_t usb_led) {
+bool led_update_user(led_t led_state) {
// Turn LED On/Off for Caps Lock
- if (host_keyboard_leds() & (1 << USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
the50_led_on();
} else {
the50_led_off();
}
+ return false;
}
diff --git a/keyboards/lazydesigners/the50/keymaps/mikethetiger/keymap.c b/keyboards/lazydesigners/the50/keymaps/mikethetiger/keymap.c
index 8986fd6c3d..c384c3c520 100644
--- a/keyboards/lazydesigners/the50/keymaps/mikethetiger/keymap.c
+++ b/keyboards/lazydesigners/the50/keymaps/mikethetiger/keymap.c
@@ -69,11 +69,12 @@ EE_CLR, _______, _______, _______, _______,
)
};
-void led_set_user(uint8_t usb_led) {
+bool led_update_user(led_t led_state) {
// Turn LED On/Off for Caps Lock
- if (host_keyboard_leds() & (1 << USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
the50_led_on();
} else {
the50_led_off();
}
+ return false;
}