Move RGBLIGHT_LED_MAP
to data driven (#21095)
This commit is contained in:
parent
6c4286152f
commit
9551a0a38a
84 changed files with 68 additions and 306 deletions
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7 }
|
|
@ -2,6 +2,9 @@
|
|||
"usb": {
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_map": [0, 1, 2, 3, 4, 5, 6, 8, 7]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["F5", "F6", "B2", "B3", "B1", "F7"],
|
||||
"rows": ["D4", "C6", "D7", "E6", "B4", "F4"]
|
||||
|
|
|
@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#pragma once
|
||||
|
||||
#define EE_HANDS
|
||||
|
||||
# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7, \
|
||||
9, 10, 11, 12, 13, 14, \
|
||||
20, 19, 18, 17, 16, 15, \
|
||||
21, 22, 23, 24, 25, 26, \
|
||||
33, 32, 31, 30, 29, 28, 27, \
|
||||
34, 35, 36, 37, 38, 39, 40 }
|
||||
|
||||
# define RGBLED_NUM 9+32
|
||||
# define RGBLIGHT_HUE_STEP 8
|
||||
# define RGBLIGHT_SAT_STEP 8
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
},
|
||||
"rgblight": {
|
||||
"max_brightness": 120,
|
||||
"led_map": [0, 1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 20, 19, 18, 17, 16, 15, 21, 22, 23, 24, 25, 26, 33, 32, 31, 30, 29, 28, 27, 34, 35, 36, 37, 38, 39, 40],
|
||||
"split_count": [9, 32]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
|
|
|
@ -42,11 +42,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
# define RGBLIGHT_LED_MAP {\
|
||||
6, 7, 12, 13, 14, 15,\
|
||||
16, 17, 11, 10, 9, 8,\
|
||||
0, 1, 2, 3, 4, 5\
|
||||
}
|
||||
# define RGBLIGHT_HUE_STEP 8
|
||||
# define RGBLIGHT_SAT_STEP 8
|
||||
# define RGBLIGHT_VAL_STEP 8
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
"driver": "WS2812"
|
||||
},
|
||||
"rgblight": {
|
||||
"max_brightness": 150
|
||||
"max_brightness": 150,
|
||||
"led_map": [6, 7, 12, 13, 14, 15, 16, 17, 11, 10, 9, 8, 0, 1, 2, 3, 4, 5]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["F5", "D4", "E6", "F7", "C6", "D7"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue