Skip to content

Commit

Permalink
[Keyboard][Fix] budget96 RGB light-switches (qmk#6840)
Browse files Browse the repository at this point in the history
Adding code to make the RGB switching work. Taken from the singa (singa.c).

Signed-off-by: Simon R <[email protected]>
  • Loading branch information
dieideeistgut authored and drashna committed Sep 30, 2019
1 parent c6c7aec commit ab3fba2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions keyboards/donutcables/budget96/budget96.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab3fba2

Please sign in to comment.