Capslock LED Indicators for Pachi RGB
Prerequisite Programs
- QMK MSYS
- QMK Toolbox
- GitHub
- Text Editor (e.g. VSCode)
Setup
- Run QMK MSYS and follow the setup process
- using QMK MSYS (mingw64) navigate to the qmk_firmware folder
- If you do not have your own keymap file, please navigate to keyboards/xelus/pachi/rgb/revX/keymaps/via with X being 1 or 2 depending on which version you have
- In keymap.c add the following code
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
// caps lock cyan
if (host_keyboard_led_state().caps_lock) {
RGB_MATRIX_INDICATOR_SET_COLOR(7, 0, 128, 128);
} else {
RGB_MATRIX_INDICATOR_SET_COLOR(7, 0, 0, 0);
}
// scroll lock cyan
if (host_keyboard_led_state().scroll_lock) {
RGB_MATRIX_INDICATOR_SET_COLOR(78, 0, 128, 128);
} else {
RGB_MATRIX_INDICATOR_SET_COLOR(78, 0, 0, 0);
}
}
- Using QMK MSYS run the following command:
qmk compile -kb xelus/pachi/rgb -km <keymap name>
Remember to swap the keymap name (or via if you edited that folder)!- Using QMK Toolbox, select your xelus_pachi_rgb_revX_via.bin
- Ensure your keyboard is in bootloader/reset mode which can be remapped from VIA, then press the RESET key
- The flash button in the top right should NOT be greyed out anymore
- Press the FLASH button and enjoy!