LED Driver QMK Help
-
- Location: United States
- Favorite switch: Fosen
- DT Pro Member: -
I'm making a custom RGB keyboard, and I'm very confused on the firmware. I'm going to use QMK. It's going to use the IS31FL3733. How would I implement the driver into the firmware? I haven't ever touched QMK, so I'm completely inexperienced. I'm using the ATMEGA32U4.
-
- Location: USA
- Main keyboard: Pok3r
- DT Pro Member: -
I'm hardly an expert on this topic, but there are probably a few different ways you could approach this, one being to talk directly with the led controller, your IS31FL3733. I just started pulling together QMK led code for the Infinity60 which uses a similar IS31FL3731 controller. My approach was to use actions in my keymap.c to send messages to the led controller and set bits on the chip. This utilizes ChibiOS which is already a submodule in QMK to interact with the controller.
keymap.c actions --> led mailbox thread (ChibiOS) --> read/write bytes on controller registers
I borrowed the TMK framework matt3o set up for the Whitefox. Have a look at his code and the specs on your led controller:
https://github.com/tmk/whitefox/blob/ma ... ntroller.c
http://www.issi.com/WW/pdf/31FL3733.pdf
Another way is through software which I haven't explored much. Someone is working on QMK backlighting for the ergodox which might be more flexible especially for RGB.
keymap.c actions --> led mailbox thread (ChibiOS) --> read/write bytes on controller registers
I borrowed the TMK framework matt3o set up for the Whitefox. Have a look at his code and the specs on your led controller:
https://github.com/tmk/whitefox/blob/ma ... ntroller.c
http://www.issi.com/WW/pdf/31FL3733.pdf
Another way is through software which I haven't explored much. Someone is working on QMK backlighting for the ergodox which might be more flexible especially for RGB.