diff options
Diffstat (limited to 'keyboards/donutcables/budget96/budget96.c')
| -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); |
