Capslock LED Indicators for Pachi RGB

Prerequisite Programs
  • QMK MSYS
  • QMK Toolbox
  • GitHub
  • Text Editor (e.g. VSCode)

Setup
  1. Run QMK MSYS and follow the setup process
  2. using QMK MSYS (mingw64) navigate to the qmk_firmware folder
  3. 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
  4. In keymap.c add the following code
  5. 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);
        }
    }
  6. Using QMK MSYS run the following command:
  7. qmk compile -kb xelus/pachi/rgb -km <keymap name>
    Remember to swap the keymap name (or via if you edited that folder)!
  8. Using QMK Toolbox, select your xelus_pachi_rgb_revX_via.bin
  9. Ensure your keyboard is in bootloader/reset mode which can be remapped from VIA, then press the RESET key
  10. The flash button in the top right should NOT be greyed out anymore
  11. Press the FLASH button and enjoy!