summaryrefslogtreecommitdiff
path: root/keyboards/matrix/noah
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/matrix/noah')
-rw-r--r--keyboards/matrix/noah/config.h7
-rw-r--r--keyboards/matrix/noah/info.json6
-rw-r--r--keyboards/matrix/noah/noah.c8
-rw-r--r--keyboards/matrix/noah/rules.mk1
4 files changed, 9 insertions, 13 deletions
diff --git a/keyboards/matrix/noah/config.h b/keyboards/matrix/noah/config.h
index 5a74ab5206..4a3e4d83c9 100644
--- a/keyboards/matrix/noah/config.h
+++ b/keyboards/matrix/noah/config.h
@@ -75,7 +75,6 @@
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
/* indicator rgb */
-#define RGBLED_NUM 7
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
@@ -86,9 +85,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
-
-
-// tapping setting
-//#define TAPPING_TERM 200
-//#define RETRO_TAPPING
-//#define PERMISSIVE_HOLD
diff --git a/keyboards/matrix/noah/info.json b/keyboards/matrix/noah/info.json
index 33dedc6bce..192be4a9b5 100644
--- a/keyboards/matrix/noah/info.json
+++ b/keyboards/matrix/noah/info.json
@@ -8,11 +8,15 @@
"pid": "0x0065",
"device_version": "0.0.1"
},
+ "rgblight": {
+ "driver": "custom",
+ "led_count": 7
+ },
"ws2812": {
"pin": "B1"
},
"rgb_matrix": {
- "driver": "IS31FL3731"
+ "driver": "is31fl3731"
},
"community_layouts": ["65_iso_blocker"],
"layouts": {
diff --git a/keyboards/matrix/noah/noah.c b/keyboards/matrix/noah/noah.c
index 671d272d85..0969998fa9 100644
--- a/keyboards/matrix/noah/noah.c
+++ b/keyboards/matrix/noah/noah.c
@@ -32,14 +32,14 @@ void rgblight_set(void) {
}
}
if (noah_led_mode) {
- uint8_t ind_led = host_keyboard_leds();
- if (IS_LED_ON(ind_led, USB_LED_CAPS_LOCK)) {
+ led_t led_state = host_keyboard_led_state();
+ if (led_state.caps_lock) {
noah_leds[0] = led[0];
}
- if (IS_LED_ON(ind_led, USB_LED_SCROLL_LOCK)) {
+ if (led_state.scroll_lock) {
noah_leds[1] = led[1];
}
- if (IS_LED_ON(ind_led, USB_LED_NUM_LOCK)) {
+ if (led_state.num_lock) {
noah_leds[2] = led[2];
}
for (int32_t i = 0; i < 4; i++) {
diff --git a/keyboards/matrix/noah/rules.mk b/keyboards/matrix/noah/rules.mk
index 55ea2f42b0..3b75264222 100644
--- a/keyboards/matrix/noah/rules.mk
+++ b/keyboards/matrix/noah/rules.mk
@@ -27,7 +27,6 @@ NO_USB_STARTUP_CHECK = yes # Disable initialization only when usb is plugged in
RGB_MATRIX_ENABLE = yes
RGBLIGHT_ENABLE = yes
-RGBLIGHT_CUSTOM_DRIVER = yes
WS2812_DRIVER_REQUIRED = yes
CUSTOM_MATRIX = yes