summaryrefslogtreecommitdiff
path: root/keyboards/model01
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-05-07 18:22:46 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-05-07 16:22:46 -0700
commitaf89752bffbaf5dcea30ea16be66b4d682701bc4 (patch)
treec82f2bc25409159a44778379db8b3a35afc47b8a /keyboards/model01
parentc7f8548d9af2045996294602d2a4bd9a214ae23c (diff)
rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part 2) (#5783)
* Initial conversion of the rgb_led struct * Converting last keyboard & updating effects to take advantage of the new structure * New struct should not be const * Updated docs * Changing define ___ for no led to NO_LED * Missed converting some keymap usages of the old struct layout
Diffstat (limited to 'keyboards/model01')
-rw-r--r--keyboards/model01/leds.c95
1 files changed, 29 insertions, 66 deletions
diff --git a/keyboards/model01/leds.c b/keyboards/model01/leds.c
index 0abc1f0da8..b21c1a5c8a 100644
--- a/keyboards/model01/leds.c
+++ b/keyboards/model01/leds.c
@@ -46,72 +46,35 @@ void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b) {
#ifdef RGB_MATRIX_ENABLE
__attribute__ ((weak))
-rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
- {{0x73}, { 3, 35}, 4},
- {{0x72}, { 0, 26}, 4},
- {{0x71}, { 0, 17}, 4},
- {{0x70}, { 0, 6}, 4},
- {{0x60}, { 14, 5}, 4},
- {{0x61}, { 15, 16}, 4},
- {{0x62}, { 16, 25}, 4},
- {{0x63}, { 17, 34}, 4},
- {{0x53}, { 31, 29}, 4},
- {{0x52}, { 31, 19}, 4},
- {{0x51}, { 30, 11}, 4},
- {{0x50}, { 30, 1}, 4},
- {{0x40}, { 45, 0}, 4},
- {{0x41}, { 45, 8}, 4},
- {{0x42}, { 46, 17}, 4},
- {{0x43}, { 46, 27}, 4},
- {{0x33}, { 60, 27}, 4},
- {{0x32}, { 60, 18}, 4},
- {{0x31}, { 60, 9}, 4},
- {{0x30}, { 60, 0}, 4},
- {{0x20}, { 74, 2}, 4},
- {{0x21}, { 74, 11}, 4},
- {{0x22}, { 75, 20}, 4},
- {{0x23}, { 74, 28}, 4},
- {{0x12}, { 89, 30}, 4},
- {{0x11}, { 89, 19}, 4},
- {{0x10}, { 89, 7}, 4},
- {{0x00}, { 70, 38}, 1},
- {{0x01}, { 82, 41}, 1},
- {{0x02}, { 93, 45}, 1},
- {{0x03}, {104, 50}, 1},
- {{0x13}, { 74, 64}, 1},
- {{0x67}, {149, 64}, 1},
- {{0x77}, {119, 50}, 1},
- {{0x76}, {130, 45}, 1},
- {{0x75}, {141, 41}, 1},
- {{0x74}, {153, 38}, 1},
- {{0x64}, {134, 7}, 4},
- {{0x65}, {134, 19}, 4},
- {{0x66}, {134, 30}, 4},
- {{0x57}, {149, 28}, 4},
- {{0x56}, {148, 20}, 4},
- {{0x55}, {149, 11}, 4},
- {{0x54}, {149, 2}, 4},
- {{0x44}, {163, 0}, 4},
- {{0x45}, {163, 9}, 4},
- {{0x46}, {163, 18}, 4},
- {{0x47}, {163, 27}, 4},
- {{0x37}, {177, 27}, 4},
- {{0x36}, {177, 17}, 4},
- {{0x35}, {178, 8}, 4},
- {{0x34}, {178, 0}, 4},
- {{0x24}, {193, 1}, 4},
- {{0x25}, {193, 11}, 4},
- {{0x26}, {192, 19}, 4},
- {{0x27}, {192, 29}, 4},
- {{0x17}, {206, 34}, 4},
- {{0x16}, {207, 25}, 4},
- {{0x15}, {208, 16}, 4},
- {{0x14}, {209, 5}, 4},
- {{0x04}, {224, 6}, 4},
- {{0x05}, {223, 17}, 4},
- {{0x06}, {223, 26}, 4},
- {{0x07}, {220, 35}, 4},
-};
+led_config_t g_led_config = { {
+ { 27, 26, 20, 19, 12, 11, 4, 3 },
+ { 28, 25, 21, 18, 13, 10, 5, 2 },
+ { 29, 24, 22, 17, 14, 9, 6, 1 },
+ { 30, 31, 23, 16, 15, 8, 7, 0 },
+ { 60, 59, 52, 51, 44, 43, 37, 36 },
+ { 61, 58, 53, 50, 45, 42, 38, 35 },
+ { 62, 57, 54, 49, 46, 41, 39, 34 },
+ { 63, 56, 55, 48, 47, 40, 32, 33 }
+}, {
+ { 3, 35 }, { 0, 26 }, { 0, 17 }, { 0, 6 }, { 14, 5 }, { 15, 16 }, { 16, 25 }, { 17, 34 },
+ { 31, 29 }, { 31, 19 }, { 30, 11 }, { 30, 1 }, { 45, 0 }, { 45, 8 }, { 46, 17 }, { 46, 27 },
+ { 60, 27 }, { 60, 18 }, { 60, 9 }, { 60, 0 }, { 74, 2 }, { 74, 11 }, { 75, 20 }, { 74, 28 },
+ { 89, 30 }, { 89, 19 }, { 89, 7 }, { 70, 38 }, { 82, 41 }, { 93, 45 }, { 104, 50 }, { 74, 64 },
+ { 149, 64 }, { 119, 50 }, { 130, 45 }, { 141, 41 }, { 153, 38 }, { 134, 7 }, { 134, 19 }, { 134, 30 },
+ { 149, 28 }, { 148, 20 }, { 149, 11 }, { 149, 2 }, { 163, 0 }, { 163, 9 }, { 163, 18 }, { 163, 27 },
+ { 177, 27 }, { 177, 17 }, { 178, 8 }, { 178, 0 }, { 193, 1 }, { 193, 11 }, { 192, 19 }, { 192, 29 },
+ { 206, 34 }, { 207, 25 }, { 208, 16 }, { 209, 5 }, { 224, 6 }, { 223, 17 }, { 223, 26 }, { 220, 35 }
+}, {
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4
+} };
+
static struct {
uint8_t b;