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 | |
| parent | faa6c93648f4fc6a538a66478f646aef6661894f (diff) | |
| download | qmk_firmware-c5e29b25c45ea1f95ec2508f50507e6ad94d4e2a.tar.gz qmk_firmware-c5e29b25c45ea1f95ec2508f50507e6ad94d4e2a.zip | |
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')
| -rw-r--r-- | keyboards/inett_studio/sqx/hotswap/hotswap.c | 9 | ||||
| -rw-r--r-- | keyboards/inett_studio/sqx/universal/universal.c | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/keyboards/inett_studio/sqx/hotswap/hotswap.c b/keyboards/inett_studio/sqx/hotswap/hotswap.c index 773b0b0b0..be8985c87 100644 --- a/keyboards/inett_studio/sqx/hotswap/hotswap.c +++ b/keyboards/inett_studio/sqx/hotswap/hotswap.c | |||
| @@ -137,7 +137,7 @@ led_config_t g_led_config = { | |||
| 137 | {128, 48},{160, 48},{176, 48},{192, 48},{160, 64},{180, 64},{200, 64},{224, 64} | 137 | {128, 48},{160, 48},{176, 48},{192, 48},{160, 64},{180, 64},{200, 64},{224, 64} |
| 138 | }, | 138 | }, |
| 139 | { | 139 | { |
| 140 | 4, 4, 4, 4, 4, 4, 4, 1, | 140 | 4, 4, 4, 4, 4, 4, 4, 4, |
| 141 | 1, 1, 4, 1, 1, 1, 1, | 141 | 1, 1, 4, 1, 1, 1, 1, |
| 142 | 142 | ||
| 143 | 1, 4, 4, 4, 4, 4, 4, 4, | 143 | 1, 4, 4, 4, 4, 4, 4, 4, |
| @@ -152,6 +152,13 @@ led_config_t g_led_config = { | |||
| 152 | } | 152 | } |
| 153 | }; | 153 | }; |
| 154 | 154 | ||
| 155 | __attribute__ ((weak)) | ||
| 156 | void rgb_matrix_indicators_user(void) { | ||
| 157 | if (host_keyboard_led_state().caps_lock) { | ||
| 158 | rgb_matrix_set_color(8, 0xFF, 0x0, 0x0); | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 155 | #endif //RGB_MATRIX_ENABLE | 162 | #endif //RGB_MATRIX_ENABLE |
| 156 | 163 | ||
| 157 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 164 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/inett_studio/sqx/universal/universal.c b/keyboards/inett_studio/sqx/universal/universal.c index f0f7f88f7..42d99330d 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 = { | |||
| 155 | 4, 4, 4, 4, 1, 1, 1, 1, | 155 | 4, 4, 4, 4, 1, 1, 1, 1, |
| 156 | } | 156 | } |
| 157 | }; | 157 | }; |
| 158 | |||
| 159 | __attribute__ ((weak)) | ||
| 160 | void rgb_matrix_indicators_user(void) { | ||
| 161 | if (host_keyboard_led_state().caps_lock) { | ||
| 162 | rgb_matrix_set_color(8, 0xFF, 0x0, 0x0); | ||
| 163 | } | ||
| 164 | } | ||
| 165 | |||
| 158 | #endif //RGB_MATRIX_ENABLE | 166 | #endif //RGB_MATRIX_ENABLE |
| 159 | 167 | ||
| 160 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 168 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
