sekigon-gonnoc / qmk_firmware

keyboard controller firmware for Atmel AVR and ARM USB families
http://qmk.fm
GNU General Public License v2.0
211 stars 85 forks source link

RGB Matrix with WS2812 on nrf52 branch #43

Open Tobiassss opened 3 years ago

Tobiassss commented 3 years ago

Feature Request Type

Description

The nrf52 branch contains outdated RGB Matrix functionality. Since I have WS2812 LEDs behind each key, it isn't compatible. It only supports IS31xxxx LED Drivers.

I'm using a nRFMicro, so I can't switch to the main QMK branch. Any updates planned to bring the current RGB Matrix implementation also to the nrf52?

joric commented 3 years ago

How's that? I used WS2812 just fine. https://github.com/joric/nrfmicro/wiki/QMK

Also see #28 there's a ton of ws2812 mentions everywhere in the code.

This is a video of my Jorne with 56 RGB LEDs (addressable sk6812, same shit) and nrf52 branch:

Tobiassss commented 3 years ago

Aren't you using the "RGB Lighting" function of QMK (https://beta.docs.qmk.fm/using-qmk/hardware-features/lighting/feature_rgblight)? rules.mk: RGBLIGHT_ENABLE = yes Which is used for Keyboard Underglow etc.

I mean the "RGB Matrix" function (https://beta.docs.qmk.fm/using-qmk/hardware-features/lighting/feature_rgb_matrix): rules.mk: RGB_MATRIX_ENABLE = yes RGB_MATRIX_DRIVER = WS2812 + Key - LED mapping over led_config_t g_led_config = in keyboard.c Which is meant for lighting specific, single Keys.

As long as you only do "general" lighting like rainbow effect etc., both functions work fine. But I want to use key specific "reactive" effects (enum rgb_matrix_effects) e.g. you press one key and this key will light up.