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 /keyboards/donutcables | |
| parent | c6c7aec85dcdccf48fc968e18c1dd8a288540b38 (diff) | |
| download | qmk_firmware-ab3fba2cdf69f61a6cb5525c092e5a2f461c925b.tar.gz qmk_firmware-ab3fba2cdf69f61a6cb5525c092e5a2f461c925b.zip | |
[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>
Diffstat (limited to 'keyboards/donutcables')
| -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 7831a91f5..2fc826f09 100644 --- a/keyboards/donutcables/budget96/budget96.c +++ b/keyboards/donutcables/budget96/budget96.c | |||
| @@ -49,6 +49,26 @@ void rgblight_set(void) { | |||
| 49 | } | 49 | } |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | void matrix_init_kb(void) { | ||
| 53 | #ifdef RGBLIGHT_ENABLE | ||
| 54 | if (rgblight_config.enable) { | ||
| 55 | i2c_init(); | ||
| 56 | i2c_transmit(0xb0, (uint8_t*)led, 3 * RGBLED_NUM, 100); | ||
| 57 | } | ||
| 58 | #endif | ||
| 59 | // call user level keymaps, if any | ||
| 60 | matrix_init_user(); | ||
| 61 | } | ||
| 62 | |||
| 63 | void matrix_scan_kb(void) { | ||
| 64 | #ifdef RGBLIGHT_ENABLE | ||
| 65 | rgblight_task(); | ||
| 66 | #endif | ||
| 67 | matrix_scan_user(); | ||
| 68 | /* Nothing else for now. */ | ||
| 69 | } | ||
| 70 | |||
| 71 | |||
| 52 | void backlight_init_ports(void) { | 72 | void backlight_init_ports(void) { |
| 53 | // initialize pins D0, D1, D4 and D6 as output | 73 | // initialize pins D0, D1, D4 and D6 as output |
| 54 | setPinOutput(D0); | 74 | setPinOutput(D0); |
