diff options
author | Simon R <dieideeistgut@users.noreply.github.com> | 2019-09-30 19:59:34 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-09-30 10:59:34 -0700 |
commit | ab3fba2cdf69f61a6cb5525c092e5a2f461c925b (patch) | |
tree | c17108e4cc38722cf04b22b934aa2c04d133b0ab | |
parent | c6c7aec85dcdccf48fc968e18c1dd8a288540b38 (diff) |
[Keyboard][Fix] budget96 RGB light-switches (#6840)
Adding code to make the RGB switching work. Taken from the singa (singa.c).
Signed-off-by: Simon R <me@dieideeistgut.de>
-rw-r--r-- | keyboards/donutcables/budget96/budget96.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/donutcables/budget96/budget96.c b/keyboards/donutcables/budget96/budget96.c index 7831a91f52..2fc826f092 100644 --- a/keyboards/donutcables/budget96/budget96.c +++ b/keyboards/donutcables/budget96/budget96.c @@ -49,6 +49,26 @@ void rgblight_set(void) { } #endif +void matrix_init_kb(void) { +#ifdef RGBLIGHT_ENABLE + if (rgblight_config.enable) { + i2c_init(); + i2c_transmit(0xb0, (uint8_t*)led, 3 * RGBLED_NUM, 100); + } +#endif + // call user level keymaps, if any + matrix_init_user(); +} + +void matrix_scan_kb(void) { +#ifdef RGBLIGHT_ENABLE + rgblight_task(); +#endif + matrix_scan_user(); + /* Nothing else for now. */ +} + + void backlight_init_ports(void) { // initialize pins D0, D1, D4 and D6 as output setPinOutput(D0); |