diff options
author | Matrix Zou <matrix.zj@qq.com> | 2021-02-04 01:18:36 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 13:18:36 -0800 |
commit | c5e29b25c45ea1f95ec2508f50507e6ad94d4e2a (patch) | |
tree | 360893ab16ed186c1030f1d7433c2aedd8aba3d5 /keyboards/inett_studio/sqx/universal | |
parent | faa6c93648f4fc6a538a66478f646aef6661894f (diff) |
Update iNETT Studio Square.X RGB Light (#11723)
* Add Caps Lock indicators support
* Fix 'a' flag error for RGB Light Mode
Diffstat (limited to 'keyboards/inett_studio/sqx/universal')
-rw-r--r-- | keyboards/inett_studio/sqx/universal/universal.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/inett_studio/sqx/universal/universal.c b/keyboards/inett_studio/sqx/universal/universal.c index f0f7f88f7a..42d99330d5 100644 --- a/keyboards/inett_studio/sqx/universal/universal.c +++ b/keyboards/inett_studio/sqx/universal/universal.c @@ -155,6 +155,14 @@ led_config_t g_led_config = { 4, 4, 4, 4, 1, 1, 1, 1, } }; + +__attribute__ ((weak)) +void rgb_matrix_indicators_user(void) { + if (host_keyboard_led_state().caps_lock) { + rgb_matrix_set_color(8, 0xFF, 0x0, 0x0); + } +} + #endif //RGB_MATRIX_ENABLE bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |