From 57b23b8d968695e98e7738ab8f563124b87545fb Mon Sep 17 00:00:00 2001 From: Allen Choi <37539914+Thunderbird2086@users.noreply.github.com> Date: Sun, 11 Jun 2023 04:35:15 +0800 Subject: [Keymap] thunderbird2086 layer status with RGB lighting/matrix (#21063) --- keyboards/crkbd/keymaps/thunderbird2086/keymap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'keyboards/crkbd/keymaps/thunderbird2086/keymap.c') diff --git a/keyboards/crkbd/keymaps/thunderbird2086/keymap.c b/keyboards/crkbd/keymaps/thunderbird2086/keymap.c index 7bc23db8aa..69c5d25fd4 100644 --- a/keyboards/crkbd/keymaps/thunderbird2086/keymap.c +++ b/keyboards/crkbd/keymaps/thunderbird2086/keymap.c @@ -80,6 +80,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; // clang-format off +#if defined(RGBLIGHT_ENABLE) +__attribute__((weak)) +void set_rgb_by_layer(layer_state_t state) { + return; +} +#endif + layer_state_t layer_state_set_user(layer_state_t state) { +# if defined(RGBLIGHT_ENABLE) + set_rgb_by_layer(state); +# endif return update_tri_layer_state(state, _FUNCTION, _ADJUST, _SECRET); } -- cgit v1.2.3