summaryrefslogtreecommitdiffstats
path: root/keyboards/xd75/keymaps/4sstylz/leds.h
blob: a5ad863b0aa1d34bc23c2a78d9bcf3af1666ce9c (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 *           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *                    Version 2, December 2004
 *
 * Copyright (C) 2019 4sStylZ <4sstylz@protonmail.ch>
 *
 * Everyone is permitted to copy and distribute verbatim or modified
 * copies of this license document, and changing it is allowed as long
 * as the name is changed.
 *
 *            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 *
 *  0. You just DO WHAT THE FUCK YOU WANT TO.
 */
#include QMK_KEYBOARD_H

void setDefaultDisplay(void) {
    _delay_ms(10);
    rgblight_setrgb_at(180, 35, 0, 0);
    _delay_ms(10);
    rgblight_setrgb_at(200, 35, 0, 1);
    _delay_ms(10);
    rgblight_setrgb_at(220, 35, 0, 2);
    _delay_ms(10);
    rgblight_setrgb_at(220, 35, 0, 3);
    _delay_ms(10);
    rgblight_setrgb_at(200, 35, 0, 4);
    _delay_ms(10);
    rgblight_setrgb_at(180, 35, 0, 5);
}

void setFNDisplay(void) {
    _delay_ms(10);
    rgblight_setrgb_at(145, 45, 0, 0);
    _delay_ms(10);
    rgblight_setrgb_at(160, 45, 0, 1);
    _delay_ms(10);
    rgblight_setrgb_at(175, 45, 0, 2);
    _delay_ms(10);
    rgblight_setrgb_at(190, 45, 0, 3);
    _delay_ms(10);
    rgblight_setrgb_at(205, 45, 0, 4);
    _delay_ms(10);
    rgblight_setrgb_at(220, 45, 0, 5);
}