Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
3 changes: 2 additions & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
/* Status Indicator Lamp */

#define HS_RGB_INDEX_CAPS 47
#define HS_RGB_INDEX_WIN_LOCK 70
#define HS_RGB_INDEX_NUM 70
//#define HS_RGB_INDEX_WIN_LOCK 71
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out as not supported by this keyboard. Uncomment if needed.

#define HS_RGB_BLINK_INDEX_VAI 5
#define HS_RGB_BLINK_INDEX_VAD 6
#define HS_RGB_BLINK_INDEX_SPI 7
Expand Down
18 changes: 11 additions & 7 deletions galaxy100.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,14 +806,18 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
ee_clr_timer = 0;
}

if (host_keyboard_led_state().caps_lock)
if (host_keyboard_led_state().caps_lock){
rgb_matrix_set_color(HS_RGB_INDEX_CAPS, 0x20, 0x20, 0x20);
else
rgb_matrix_set_color(HS_RGB_INDEX_CAPS, RGB_BLACK);
if (!keymap_is_mac_system() && keymap_config.no_gui)
rgb_matrix_set_color(HS_RGB_INDEX_WIN_LOCK, 0x20, 0x20, 0x20);
else
rgb_matrix_set_color(HS_RGB_INDEX_WIN_LOCK, RGB_BLACK);
}

if (host_keyboard_led_state().num_lock){
rgb_matrix_set_color(HS_RGB_INDEX_NUM, 0x20, 0x20, 0x20);
}

// if (!keymap_is_mac_system() && keymap_config.no_gui)
// rgb_matrix_set_color(HS_RGB_INDEX_WIN_LOCK, 0x20, 0x20, 0x20);
// else
// rgb_matrix_set_color(HS_RGB_INDEX_WIN_LOCK, RGB_BLACK);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out as not supported by this keyboard. Uncomment if needed.


rgb_matrix_hs_indicator();

Expand Down
22 changes: 20 additions & 2 deletions keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,26 @@
},
"driver": "ws2812",
"layout": [
{"matrix": [5, 18], "x": 64, "y": 223, "flags": 4},
{"matrix": [5, 17], "x": 64, "y": 211, "flags": 4},
{"matrix": [5, 16], "x": 64, "y": 198, "flags": 4},
{"matrix": [5, 15], "x": 64, "y": 186, "flags": 4},
{"matrix": [5, 14], "x": 64, "y": 174, "flags": 4},
{"matrix": [5, 13], "x": 64, "y": 161, "flags": 4},
{"matrix": [5, 12], "x": 64, "y": 149, "flags": 4},
{"matrix": [5, 11], "x": 64, "y": 136, "flags": 4},
{"matrix": [5, 10], "x": 64, "y": 124, "flags": 4},
{"matrix": [5, 9], "x": 64, "y": 112, "flags": 4},
{"matrix": [5, 8], "x": 64, "y": 99, "flags": 4},
{"matrix": [5, 7], "x": 64, "y": 87, "flags": 4},
{"matrix": [5, 6], "x": 64, "y": 74, "flags": 4},
{"matrix": [5, 5], "x": 64, "y": 62, "flags": 4},
{"matrix": [5, 4], "x": 64, "y": 50, "flags": 4},
{"matrix": [5, 3], "x": 64, "y": 37, "flags": 4},
{"matrix": [5, 2], "x": 64, "y": 25, "flags": 4},
{"matrix": [5, 1], "x": 64, "y": 12, "flags": 4},
{"matrix": [5, 0], "x": 64, "y": 0, "flags": 4},

{"matrix": [4, 0], "x": 51, "y": 0, "flags": 4},
{"matrix": [4, 1], "x": 51, "y": 12, "flags": 4},
{"matrix": [4, 2], "x": 51, "y": 25, "flags": 4},
Expand All @@ -132,14 +141,19 @@
{"matrix": [4, 10], "x": 51, "y": 124, "flags": 4},
{"matrix": [4, 11], "x": 51, "y": 136, "flags": 4},
{"matrix": [4, 12], "x": 51, "y": 149, "flags": 4},
{"matrix": [4, 13], "x": 51, "y": 161, "flags": 4},
{"matrix": [4, 14], "x": 51, "y": 174, "flags": 4},
{"matrix": [4, 15], "x": 51, "y": 186, "flags": 4},
{"matrix": [4, 16], "x": 51, "y": 198, "flags": 4},
{"matrix": [4, 17], "x": 51, "y": 211, "flags": 4},
{"matrix": [4, 18], "x": 51, "y": 223, "flags": 4},

{"matrix": [3, 18], "x": 38, "y": 223, "flags": 4},
{"matrix": [3, 17], "x": 38, "y": 211, "flags": 4},
{"matrix": [3, 16], "x": 38, "y": 198, "flags": 4},
{"matrix": [3, 15], "x": 38, "y": 186, "flags": 4},
{"matrix": [3, 14], "x": 38, "y": 174, "flags": 4},
{"matrix": [3, 13], "x": 38, "y": 161, "flags": 4},
{"matrix": [3, 12], "x": 38, "y": 149, "flags": 4},
{"matrix": [3, 11], "x": 38, "y": 136, "flags": 4},
{"matrix": [3, 10], "x": 38, "y": 124, "flags": 4},
Expand All @@ -153,6 +167,7 @@
{"matrix": [3, 2], "x": 38, "y": 25, "flags": 4},
{"matrix": [3, 1], "x": 38, "y": 12, "flags": 4},
{"matrix": [3, 0], "x": 38, "y": 0, "flags": 4},

{"matrix": [2, 0], "x": 26, "y": 0, "flags": 4},
{"matrix": [2, 1], "x": 26, "y": 12, "flags": 4},
{"matrix": [2, 2], "x": 26, "y": 25, "flags": 4},
Expand All @@ -172,6 +187,7 @@
{"matrix": [2, 16], "x": 26, "y": 198, "flags": 4},
{"matrix": [2, 17], "x": 26, "y": 211, "flags": 4},
{"matrix": [2, 18], "x": 26, "y": 223, "flags": 4},

{"matrix": [1, 18], "x": 13, "y": 223, "flags": 4},
{"matrix": [1, 17], "x": 13, "y": 211, "flags": 4},
{"matrix": [1, 16], "x": 13, "y": 198, "flags": 4},
Expand All @@ -191,7 +207,9 @@
{"matrix": [1, 2], "x": 13, "y": 25, "flags": 4},
{"matrix": [1, 1], "x": 13, "y": 12, "flags": 4},
{"matrix": [1, 0], "x": 13, "y": 0, "flags": 4},

{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 0, "y": 12, "flags": 4},
{"matrix": [0, 2], "x": 0, "y": 25, "flags": 4},
{"matrix": [0, 3], "x": 0, "y": 37, "flags": 4},
{"matrix": [0, 4], "x": 0, "y": 50, "flags": 4},
Expand All @@ -208,7 +226,7 @@
{"matrix": [0, 15], "x": 0, "y": 186, "flags": 4},
{"matrix": [0, 16], "x": 0, "y": 198, "flags": 4},
{"matrix": [0, 17], "x": 0, "y": 211, "flags": 4},
{"matrix": [0, 18], "x": 0, "y": 223, "flags": 4},
{"matrix": [0, 18], "x": 0, "y": 223, "flags": 4}
],
"max_brightness": 150,
"val_steps": 30,
Expand Down Expand Up @@ -340,4 +358,4 @@
]
}
}
}
}
Loading