summaryrefslogtreecommitdiff
path: root/keyboards/model01
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-04-30 00:18:50 +0200
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-04-29 15:18:50 -0700
commita7113c8ed090d0ac647f30ee9b8ef41252e568ed (patch)
tree24d33db679b4d1357efef2784e69fea48e98d0ed /keyboards/model01
parent1d784f0f9575b70e35c9c8338b0ff80dc7316d7e (diff)
Updated rgb_led struct field modifier to flags (#5619)
Updated effects to test led flags Updated massdrop to use new flags field for led toggle
Diffstat (limited to 'keyboards/model01')
-rw-r--r--keyboards/model01/leds.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/keyboards/model01/leds.c b/keyboards/model01/leds.c
index 7a62c7424c..0abc1f0da8 100644
--- a/keyboards/model01/leds.c
+++ b/keyboards/model01/leds.c
@@ -46,34 +46,34 @@ void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b) {
#ifdef RGB_MATRIX_ENABLE
__attribute__ ((weak))
-const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
- {{0x73}, { 3, 35}, 0},
- {{0x72}, { 0, 26}, 0},
- {{0x71}, { 0, 17}, 0},
- {{0x70}, { 0, 6}, 0},
- {{0x60}, { 14, 5}, 0},
- {{0x61}, { 15, 16}, 0},
- {{0x62}, { 16, 25}, 0},
- {{0x63}, { 17, 34}, 0},
- {{0x53}, { 31, 29}, 0},
- {{0x52}, { 31, 19}, 0},
- {{0x51}, { 30, 11}, 0},
- {{0x50}, { 30, 1}, 0},
- {{0x40}, { 45, 0}, 0},
- {{0x41}, { 45, 8}, 0},
- {{0x42}, { 46, 17}, 0},
- {{0x43}, { 46, 27}, 0},
- {{0x33}, { 60, 27}, 0},
- {{0x32}, { 60, 18}, 0},
- {{0x31}, { 60, 9}, 0},
- {{0x30}, { 60, 0}, 0},
- {{0x20}, { 74, 2}, 0},
- {{0x21}, { 74, 11}, 0},
- {{0x22}, { 75, 20}, 0},
- {{0x23}, { 74, 28}, 0},
- {{0x12}, { 89, 30}, 0},
- {{0x11}, { 89, 19}, 0},
- {{0x10}, { 89, 7}, 0},
+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},
@@ -84,33 +84,33 @@ const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
{{0x76}, {130, 45}, 1},
{{0x75}, {141, 41}, 1},
{{0x74}, {153, 38}, 1},
- {{0x64}, {134, 7}, 0},
- {{0x65}, {134, 19}, 0},
- {{0x66}, {134, 30}, 0},
- {{0x57}, {149, 28}, 0},
- {{0x56}, {148, 20}, 0},
- {{0x55}, {149, 11}, 0},
- {{0x54}, {149, 2}, 0},
- {{0x44}, {163, 0}, 0},
- {{0x45}, {163, 9}, 0},
- {{0x46}, {163, 18}, 0},
- {{0x47}, {163, 27}, 0},
- {{0x37}, {177, 27}, 0},
- {{0x36}, {177, 17}, 0},
- {{0x35}, {178, 8}, 0},
- {{0x34}, {178, 0}, 0},
- {{0x24}, {193, 1}, 0},
- {{0x25}, {193, 11}, 0},
- {{0x26}, {192, 19}, 0},
- {{0x27}, {192, 29}, 0},
- {{0x17}, {206, 34}, 0},
- {{0x16}, {207, 25}, 0},
- {{0x15}, {208, 16}, 0},
- {{0x14}, {209, 5}, 0},
- {{0x04}, {224, 6}, 0},
- {{0x05}, {223, 17}, 0},
- {{0x06}, {223, 26}, 0},
- {{0x07}, {220, 35}, 0},
+ {{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},
};
static struct {