0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

キーボードキット Quick17 の LED を黙らせる

Posted at

モチベ

  • Quick17 を買った

    • PowerToys の登場で、複数の修飾キーを押しながらのショートカットが増えたため
    • Gateron Ink BlueDSA 青 でクリアな青に揃えてみたが中々いい
    • Mill-Max ソケット とか使ってみればよかったかも
      DSC_0381~2.JPG
    • エンコーダ周辺は回しにくかったためキャップを外した
  • 組めたが、デフォでLEDがピカピカ光ってとてもうるさい

    • 修飾キーを押したり、レイヤを切り替えている間の"状態"として一部が光るのはいいと思うが、常時全体が光っているのはやかましい
    • 最近の「ゲーミング」ブームは何なのだろうか?

対処

  • 深く調べずに適当にやっているので、間違っていたり、効率の悪い方法かもしれない

Try 1.

  • rules.mkRGB_MATRIX_ENABLE = yesRGB_MATRIX_ENABLE = no にしたら消えるんじゃないか?
  • 消えない……

Try 2.

qmk_firmware/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
RGB_MATRIX_EFFECT(quick17_rgbm_effect)
  • RGB_MATRIX_CUSTOM_KB が機能しないようにする
    • 返り値は分からん、どっちでも動く
     13 diff --git a/keyboards/yushakobo/quick17/rgb_matrix_kb.inc b/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
     14 index 0232b05ab9..0da503e2e0 100644
     15 --- a/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
     16 +++ b/keyboards/yushakobo/quick17/rgb_matrix_kb.inc
     17 @@ -2,6 +2,7 @@ RGB_MATRIX_EFFECT(quick17_rgbm_effect)
     18
     19  #ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
     20
     21 +#if 0
     22  #include "quick17_prefs.h"
     23
     24  #define LED_LAYOUT(\
     25 @@ -113,5 +114,12 @@ static bool quick17_rgbm_effect (effect_params_t* params) {
     26      }
     27      return rgb_matrix_check_finished_leds(led_max);
     28  }
     29 +#endif /* if 0 */
     30 +
     31 +static bool quick17_rgbm_effect (effect_params_t* params) {
     32 +    return false;
     33 +}
     34 +
     35 +
     36
     37  #endif
  • やっと LED が静かになった……

その他

  • レイヤの名前定義は keyboards/yushakobo/quick17/quick17_prefs.h
qmk_firmware/keyboards/yushakobo/quick17/quick17_prefs.h
      1 /* Copyright 2021 yushakobo
      2  *
      3  * This program is free software: you can redistribute it and/or modify
      4  * it under the terms of the GNU General Public License as published by
      5  * the Free Software Foundation, either version 2 of the License, or
      6  * (at your option) any later version.
      7  *
      8  * This program is distributed in the hope that it will be useful,
      9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11  * GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License
     14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15  */
     16
     17 enum layer_names {    <---- これ
     18     _DEFAULT,         <---- enum の最初のレイヤが初期レイヤになるので、末尾に追加した後 keymaps.c でそれ以外のレイヤを削除すると反応しなくなる
     19     _CONTROL,
     20     _EDIT1,
     21     _EDIT2,
     22     _FN
     23 };
     24
     25 #define _HSV(H, S, V) (HSV){ .h = H, .s = S, .v = V }
     26 #define _RGB(rgb) rgb.r, rgb.g, rgb.b
     27
     28 bool input_mode(void);
     29 void set_input_mode(bool _mode_jaen);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?