summaryrefslogtreecommitdiff
path: root/keyboards/doio/kb38/rgb_matrix_kb.inc
blob: 6e672c889dcb393636ca7e9431da4b5ffab58c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
RGB_MATRIX_EFFECT(trans)
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS

static bool trans(effect_params_t* params) {
    RGB_MATRIX_USE_LIMITS(led_min, led_max);
    for (int i = 0; i < 8; i++) {
        rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
    }
    for (int i = 8; i < 15; i++) {
        rgb_matrix_set_color(i, 0xFF, 0x00, 0x92);
    }
    for (int i = 15; i < 28; i++) {
        rgb_matrix_set_color(i, 0xFF, 0xFF, 0xFF);
    }
    for (int i = 28; i < 33; i++) {
        rgb_matrix_set_color(i, 0xFF, 0x00, 0x92);
    }
    for (int i = 33; i < 38; i++) {
        rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
    }
    for (int i = 38; i < 44; i++) {
        rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
    }
    return rgb_matrix_check_finished_leds(led_max);
}

#endif