Submitted by Wemmsie t3_116xwvz in MechanicalKeyboards
emptyskoll t1_j9d9kyw wrote
Reply to comment by Wemmsie in Keebio Iris rev7 build! Now to relearn how to type... by Wemmsie
Ah I didn't realize they sold middle layers under the `Iris PE (Phoenix Edition) Case/Plates` item in the store, so I had only seen the 3D printed middle layer! I'l definitely have to pick this up! I've been running mine without a middle layer for a long time, but I want to improve the look and sound a bit. Thanks!
Side note, how did you set the per key rgb? I've only been using the underglow RGB because I couldn't figure it out haha.
Wemmsie OP t1_j9dclrj wrote
Heck yes on the middle layer! Per key RGB was a bit tricky and I think I understand it, but the entirety of my code is in my repo. Definitely reference that. With the assumption that you have QMK set up:
- Enable RGB matrix lighting and optional tap dance for some shortcut fun in rules.mk
-
#define SPLIT_LAYER_STATE_ENABLE
,#define EE_HANDS
, and#define RGB_MATRIX_KEYPRESSES
in config.h - State your safety net for max/min led range so it doesn't loop infinitely and use
rgb_matrix_indicators_advanced_user
to set up someif
statements.
An example - on my layout, I have E, S, D, F as my arrow keys on my second layer.
if (i == 8 || (i >= 14 && i <= 16)) {
RGB_MATRIX_INDICATOR_SET_COLOR(i, 250, 55, 55);
}
With this if
statement, i
represents the key codes I'm targeting (see image below). ||
separates each range as "or". So if my range is (8) or (≥ 14 and ≤ 16), i
then is defined with that RGB color code. Basically pink. Or you can say (i, RGB_PINK)
or any other defined RGB string you can find in the QMK documentation.
Everything after the RGB LED Setup divider in my code is just there for per key rgb on any layer above 0, plus my simple tap dance command to double tap the shift key and turn it red when caps lock is enabled. DM me if you have any questions!
Edit, also! Here's the LED map for each key for when you define your ranges. Hope this helps.
emptyskoll t1_j9gvkt7 wrote
Thank you so much! I'll have to learn qmk, I've just been using Via. I'm going to take a crack at it once my new plates arrive!
Viewing a single comment thread. View all comments