coseyfannitutti / mysterium

TKL keyboard that can be entirely assembled using only through hole components, including usb type-c
GNU General Public License v3.0
505 stars 108 forks source link

How to add capslock lights in qmk #10

Open kikko233 opened 4 years ago

kikko233 commented 4 years ago

i find gpio 32 not be used,i want to use this gpio with caps light. But i don't know how to set up in qmk,please help me ,think you very very much

nchieng commented 4 years ago

Disclaimer: I have not yet flashed any keyboards with QMK as they are all still enroute. I have looked at the documentation a little to learn.

Without knowing what board/mcu/driver you have, there's only so much one can assume.

This LED Control documentation pretty mail nails it. You might just need to figure out what GPIO 32 corresponds to for your specific board.

You will need to ensure a few things have been done:

  1. config.h
    /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
    #define LOCKING_SUPPORT_ENABLE
    /* Locking resynchronize hack */
    #define LOCKING_RESYNC_ENABLE
KolCrooks commented 3 years ago

@kikko233 did you ever figure out how to add a caps light? I was thinking about adding one to my keyboard.