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

@ -36,23 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef RGBLED_NUM
#define RGBLED_NUM 69
#define RGBLIGHT_LED_MAP { \
0, 1, 2, 3, \
8, 7, 6, 5, 4, \
9,10,11,12,13, \
18,17,16,15,14, \
19,20,21,22,23, \
28,27,26,25,24, \
29,30,31,32,33, \
38,37,36,35,34, \
39,40,41,42,43, \
48,47,46,45,44, \
49,50,51,52,53, \
58,57,56,55,54, \
59,60,61,62,63, \
68,67,66,65,64 \
}
#define RGBLIGHT_SLEEP
#endif

View file

@ -13,6 +13,9 @@
{"pin_a": "B4", "pin_b": "B5"}
]
},
"rgblight": {
"led_map": [0, 1, 2, 3, 8, 7, 6, 5, 4, 9, 10, 11, 12, 13, 18, 17, 16, 15, 14, 19, 20, 21, 22, 23, 28, 27, 26, 25, 24, 29, 30, 31, 32, 33, 38, 37, 36, 35, 34, 39, 40, 41, 42, 43, 48, 47, 46, 45, 44, 49, 50, 51, 52, 53, 58, 57, 56, 55, 54, 59, 60, 61, 62, 63, 68, 67, 66, 65, 64]
},
"ws2812": {
"pin": "D3"
},