summaryrefslogtreecommitdiff
path: root/keyboards/mt/mt980
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mt/mt980')
-rw-r--r--keyboards/mt/mt980/config.h4
-rw-r--r--keyboards/mt/mt980/info.json3
-rw-r--r--keyboards/mt/mt980/keymaps/walker/keymap.c4
3 files changed, 5 insertions, 6 deletions
diff --git a/keyboards/mt/mt980/config.h b/keyboards/mt/mt980/config.h
index eff34dc521..d702489ee7 100644
--- a/keyboards/mt/mt980/config.h
+++ b/keyboards/mt/mt980/config.h
@@ -16,7 +16,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 24
-#define RGBLIGHT_HUE_STEP 8
-#define RGBLIGHT_SAT_STEP 8
-#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/mt/mt980/info.json b/keyboards/mt/mt980/info.json
index 809474914f..7f4d9b060f 100644
--- a/keyboards/mt/mt980/info.json
+++ b/keyboards/mt/mt980/info.json
@@ -26,6 +26,9 @@
"pin": "E2"
},
"rgblight": {
+ "saturation_steps": 8,
+ "brightness_steps": 8,
+ "led_count": 24,
"max_brightness": 185
},
"bootmagic": {
diff --git a/keyboards/mt/mt980/keymaps/walker/keymap.c b/keyboards/mt/mt980/keymaps/walker/keymap.c
index e98a1d71de..f0817dd33d 100644
--- a/keyboards/mt/mt980/keymaps/walker/keymap.c
+++ b/keyboards/mt/mt980/keymaps/walker/keymap.c
@@ -89,8 +89,8 @@ tap_dance_action_t tap_dance_actions[] = {
[ALT_L1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,alt_finished, alt_reset)
};
-void led_set_keymap(uint8_t usb_led) {
- if (usb_led & (1<<USB_LED_NUM_LOCK)) {
+bool led_update_keymap(led_t led_state) {
+ if (led_state.num_lock) {
numlock_on = true;
}
else {