1
0
Fork 0

Move RGBLIGHT_LED_MAP to data driven (#21095)

This commit is contained in:
Ryan 2023-06-14 22:01:13 +10:00 committed by GitHub
parent 6c4286152f
commit 9551a0a38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
84 changed files with 68 additions and 306 deletions

View file

@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define RGBLED_NUM 33
#define RGBLIGHT_LED_MAP { \
0, 1, 2, 3, \
7, 6, 5, 4, \
8, 9, 10, 11, \
15, 14, 13, 12, \
16, 17, 18, 19, \
22, 21, 20, \
25, 24, 23, 26, 27, 28, 29, 30, 31, 32 }
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View file

@ -12,7 +12,8 @@
"pin": "C6"
},
"rgblight": {
"max_brightness": 32
"max_brightness": 32,
"led_map": [0, 1, 2, 3, 7, 6, 5, 4, 8, 9, 10, 11, 15, 14, 13, 12, 16, 17, 18, 19, 22, 21, 20, 25, 24, 23, 26, 27, 28, 29, 30, 31, 32]
},
"matrix_pins": {
"cols": ["C7", "D6", "B3", "B0", "B1"],