aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/stick/stick.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/stick/stick.c')
-rw-r--r--keyboards/keebio/stick/stick.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/keebio/stick/stick.c b/keyboards/keebio/stick/stick.c
new file mode 100644
index 000000000..050c4eff8
--- /dev/null
+++ b/keyboards/keebio/stick/stick.c
@@ -0,0 +1,50 @@
1/*
2Copyright 2021 Danny Nguyen <danny@keeb.io>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include "stick.h"
19
20#ifdef RGB_MATRIX_ENABLE
21led_config_t g_led_config = { {
22 // Key Matrix to LED Index
23 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
24}, {
25 // LED Index to Physical Position
26 { 0, 0 }, { 20, 0 }, { 40, 0 }, { 60, 0 },
27 { 80, 0 }, { 100, 0 }, { 120, 0 }, { 140, 0 },
28 { 160, 0 }, { 180, 0 }, { 200, 0 }, { 220, 0 },
29}, {
30 // LED Index to Flag
31 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
32} };
33#endif
34
35void eeconfig_init_kb(void) {
36#ifdef RGBLIGHT_ENABLE
37 rgblight_enable(); // Enable RGB by default
38 rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
39# ifdef RGBLIGHT_ANIMATIONS
40 rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
41# endif
42#endif
43
44#ifdef RGB_MATRIX_ENABLE
45 rgb_matrix_enable(); // Enable RGB by default
46#endif
47
48 eeconfig_update_kb(0);
49 eeconfig_init_user();
50}