aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martins <carlosmartins8@gmail.com>2021-09-15 04:38:13 +0100
committerGitHub <noreply@github.com>2021-09-14 20:38:13 -0700
commit0dfc1db74af5a71900b41777640fe9553e0a2999 (patch)
treecf5959b93b03b4bd34da66630a3a1770fc0de613
parenteee553337a02d64bb5acdeb0a2b13461637409df (diff)
downloadqmk_firmware-0dfc1db74af5a71900b41777640fe9553e0a2999.tar.gz
qmk_firmware-0dfc1db74af5a71900b41777640fe9553e0a2999.zip
[Keyboard] VIA support with top facing LEDs and underglow (#12814)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/sofle/keymaps/via/config.h44
1 files changed, 26 insertions, 18 deletions
diff --git a/keyboards/sofle/keymaps/via/config.h b/keyboards/sofle/keymaps/via/config.h
index 32139d8b1..c2e48ea7d 100644
--- a/keyboards/sofle/keymaps/via/config.h
+++ b/keyboards/sofle/keymaps/via/config.h
@@ -1,19 +1,19 @@
1 /* Copyright 2020 Josef Adamcik 1 /* Copyright 2020 Josef Adamcik
2 * Modification for VIA support and RGB underglow by Jens Bonk-Wiltfang 2 * Modification for VIA support and RGB underglow by Jens Bonk-Wiltfang
3 * 3 *
4 * This program is free software: you can redistribute it and/or modify 4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or 6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version. 7 * (at your option) any later version.
8 * 8 *
9 * This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18#pragma once 18#pragma once
19 19
@@ -22,8 +22,16 @@ see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
22for more options. 22for more options.
23*/ 23*/
24 24
25//Add RGB underglow 25//Add RGB underglow and top facing lighting
26#define RGB_DI_PIN D3 26#define RGB_DI_PIN D3
27#define RGBLED_NUM 14 27#ifdef RGB_MATRIX_ENABLE
28#define RGBLED_SPLIT {7,7} 28#define RGBLED_NUM 36 // Number of LEDs
29#define RGBLIGHT_ANIMATIONS \ No newline at end of file 29#define DRIVER_LED_TOTAL RGBLED_NUM
30#endif
31#define RGBLED_NUM 70
32#define RGBLED_SPLIT {36,36}
33#define RGBLIGHT_ANIMATIONS
34#define RGBLIGHT_LIMIT_VAL 120
35#define RGBLIGHT_HUE_STEP 10
36#define RGBLIGHT_SAT_STEP 17
37#define RGBLIGHT_VAL_STEP 17