summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-04-30 00:18:50 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-07 21:45:35 -0700
commit6364fe4efb3c2ac402d3d189a246e4428394840c (patch)
treed40cc19fe17d2afa6ff037bfddcb9be09571dfb5 /keyboards
parentff3e430970fb38940598ae96e2c85d1cb9e15ad9 (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')
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c96
-rw-r--r--keyboards/planck/ez/ez.c66
2 files changed, 81 insertions, 81 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 6f4ae9fed1..13ea843022 100644
--- a/keyboards/ergodox_ez/ergodox_ez.c
+++ b/keyboards/ergodox_ez/ergodox_ez.c
@@ -269,64 +269,64 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
};
-const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
+rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
/*{row | col << 4}
| {x=0..224, y=0..64}
- | | modifier
+ | | flags
| | | */
- {{ 8|(0<<4)}, {17.2* 8, 12.8*0}, 0}, // LED 1 on right > Key 6
- {{ 9|(0<<4)}, {17.2* 9, 12.8*0}, 0}, // LED 2 > Key 7
- {{10|(0<<4)}, {17.2*10, 12.8*0}, 0}, // LED 3 > Key 8
- {{11|(0<<4)}, {17.2*11, 12.8*0}, 0}, // LED 4 > Key 9
- {{12|(0<<4)}, {17.2*12, 12.8*0}, 0}, // LED 5 > Key 0
-
- {{ 8|(1<<4)}, {17.2* 8, 12.8*1}, 0}, // LED 6
- {{ 9|(1<<4)}, {17.2* 9, 12.8*1}, 0}, // LED 7
- {{10|(1<<4)}, {17.2*10, 12.8*1}, 0}, // LED 8
- {{11|(1<<4)}, {17.2*11, 12.8*1}, 0}, // LED 9
- {{12|(1<<4)}, {17.2*12, 12.8*1}, 0}, // LED 10
-
- {{ 8|(2<<4)}, {17.2* 8, 12.8*2}, 0}, // LED 11
- {{ 9|(2<<4)}, {17.2* 9, 12.8*2}, 0}, // LED 12
- {{10|(2<<4)}, {17.2*10, 12.8*2}, 0}, // LED 13
- {{11|(2<<4)}, {17.2*11, 12.8*2}, 0}, // LED 14
- {{12|(2<<4)}, {17.2*12, 12.8*2}, 0}, // LED 15
-
- {{ 8|(3<<4)}, {17.2* 8, 12.8*3}, 0}, // LED 16
- {{ 9|(3<<4)}, {17.2* 9, 12.8*3}, 0}, // LED 17
- {{10|(3<<4)}, {17.2*10, 12.8*3}, 0}, // LED 18
- {{11|(3<<4)}, {17.2*11, 12.8*3}, 0}, // LED 19
- {{12|(3<<4)}, {17.2*12, 12.8*3}, 0}, // LED 20
+ {{ 8|(0<<4)}, {17.2* 8, 12.8*0}, 4}, // LED 1 on right > Key 6
+ {{ 9|(0<<4)}, {17.2* 9, 12.8*0}, 4}, // LED 2 > Key 7
+ {{10|(0<<4)}, {17.2*10, 12.8*0}, 4}, // LED 3 > Key 8
+ {{11|(0<<4)}, {17.2*11, 12.8*0}, 4}, // LED 4 > Key 9
+ {{12|(0<<4)}, {17.2*12, 12.8*0}, 4}, // LED 5 > Key 0
+
+ {{ 8|(1<<4)}, {17.2* 8, 12.8*1}, 4}, // LED 6
+ {{ 9|(1<<4)}, {17.2* 9, 12.8*1}, 4}, // LED 7
+ {{10|(1<<4)}, {17.2*10, 12.8*1}, 4}, // LED 8
+ {{11|(1<<4)}, {17.2*11, 12.8*1}, 4}, // LED 9
+ {{12|(1<<4)}, {17.2*12, 12.8*1}, 4}, // LED 10
+
+ {{ 8|(2<<4)}, {17.2* 8, 12.8*2}, 4}, // LED 11
+ {{ 9|(2<<4)}, {17.2* 9, 12.8*2}, 4}, // LED 12
+ {{10|(2<<4)}, {17.2*10, 12.8*2}, 4}, // LED 13
+ {{11|(2<<4)}, {17.2*11, 12.8*2}, 4}, // LED 14
+ {{12|(2<<4)}, {17.2*12, 12.8*2}, 4}, // LED 15
+
+ {{ 8|(3<<4)}, {17.2* 8, 12.8*3}, 4}, // LED 16
+ {{ 9|(3<<4)}, {17.2* 9, 12.8*3}, 4}, // LED 17
+ {{10|(3<<4)}, {17.2*10, 12.8*3}, 4}, // LED 18
+ {{11|(3<<4)}, {17.2*11, 12.8*3}, 4}, // LED 19
+ {{12|(3<<4)}, {17.2*12, 12.8*3}, 4}, // LED 20
{{ 9|(4<<4)}, {17.2* 9, 12.8*4}, 1}, // LED 21
{{10|(4<<4)}, {17.2*10, 12.8*4}, 1}, // LED 22
{{11|(4<<4)}, {17.2*11, 12.8*4}, 1}, // LED 23
{{12|(4<<4)}, {17.2*12, 12.8*4}, 1}, // LED 24
- {{ 5|(0<<4)}, {17.2* 5, 12.8*0}, 0}, // LED 1 on left > Key 5
- {{ 4|(0<<4)}, {17.2* 4, 12.8*0}, 0}, // LED 2 > Key 4
- {{ 3|(0<<4)}, {17.2* 3, 12.8*0}, 0}, // LED 3 > Key 3
- {{ 2|(0<<4)}, {17.2* 2, 12.8*0}, 0}, // LED 4 > Key 2
- {{ 1|(0<<4)}, {17.2* 1, 12.8*0}, 0}, // LED 5 > Key 1
-
- {{ 5|(1<<4)}, {17.2* 5, 12.8*1}, 0}, // LED 6
- {{ 4|(1<<4)}, {17.2* 4, 12.8*1}, 0}, // LED 7
- {{ 3|(1<<4)}, {17.2* 3, 12.8*1}, 0}, // LED 8
- {{ 2|(1<<4)}, {17.2* 2, 12.8*1}, 0}, // LED 9
- {{ 1|(1<<4)}, {17.2* 1, 12.8*1}, 0}, // LED 10
-
- {{ 5|(2<<4)}, {17.2* 5, 12.8*2}, 0}, // LED 11
- {{ 4|(2<<4)}, {17.2* 4, 12.8*2}, 0}, // LED 12
- {{ 3|(2<<4)}, {17.2* 3, 12.8*2}, 0}, // LED 13
- {{ 2|(2<<4)}, {17.2* 2, 12.8*2}, 0}, // LED 14
- {{ 1|(2<<4)}, {17.2* 1, 12.8*2}, 0}, // LED 15
-
- {{ 5|(3<<4)}, {17.2* 5, 12.8*3}, 0}, // LED 16
- {{ 4|(3<<4)}, {17.2* 4, 12.8*3}, 0}, // LED 17
- {{ 3|(3<<4)}, {17.2* 3, 12.8*3}, 0}, // LED 18
- {{ 2|(3<<4)}, {17.2* 2, 12.8*3}, 0}, // LED 19
- {{ 1|(3<<4)}, {17.2* 1, 12.8*3}, 0}, // LED 20
+ {{ 5|(0<<4)}, {17.2* 5, 12.8*0}, 4}, // LED 1 on left > Key 5
+ {{ 4|(0<<4)}, {17.2* 4, 12.8*0}, 4}, // LED 2 > Key 4
+ {{ 3|(0<<4)}, {17.2* 3, 12.8*0}, 4}, // LED 3 > Key 3
+ {{ 2|(0<<4)}, {17.2* 2, 12.8*0}, 4}, // LED 4 > Key 2
+ {{ 1|(0<<4)}, {17.2* 1, 12.8*0}, 4}, // LED 5 > Key 1
+
+ {{ 5|(1<<4)}, {17.2* 5, 12.8*1}, 4}, // LED 6
+ {{ 4|(1<<4)}, {17.2* 4, 12.8*1}, 4}, // LED 7
+ {{ 3|(1<<4)}, {17.2* 3, 12.8*1}, 4}, // LED 8
+ {{ 2|(1<<4)}, {17.2* 2, 12.8*1}, 4}, // LED 9
+ {{ 1|(1<<4)}, {17.2* 1, 12.8*1}, 4}, // LED 10
+
+ {{ 5|(2<<4)}, {17.2* 5, 12.8*2}, 4}, // LED 11
+ {{ 4|(2<<4)}, {17.2* 4, 12.8*2}, 4}, // LED 12
+ {{ 3|(2<<4)}, {17.2* 3, 12.8*2}, 4}, // LED 13
+ {{ 2|(2<<4)}, {17.2* 2, 12.8*2}, 4}, // LED 14
+ {{ 1|(2<<4)}, {17.2* 1, 12.8*2}, 4}, // LED 15
+
+ {{ 5|(3<<4)}, {17.2* 5, 12.8*3}, 4}, // LED 16
+ {{ 4|(3<<4)}, {17.2* 4, 12.8*3}, 4}, // LED 17
+ {{ 3|(3<<4)}, {17.2* 3, 12.8*3}, 4}, // LED 18
+ {{ 2|(3<<4)}, {17.2* 2, 12.8*3}, 4}, // LED 19
+ {{ 1|(3<<4)}, {17.2* 1, 12.8*3}, 4}, // LED 20
{{ 4|(4<<4)}, {17.2* 4, 12.8*4}, 1}, // LED 21
{{ 3|(4<<4)}, {17.2* 3, 12.8*4}, 1}, // LED 22
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index c3b7e26170..94f5071896 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -79,49 +79,49 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
};
-const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
+rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
/*{row | col << 4}
| {x=0..224, y=0..64}
- | | modifier
+ | | flags
| | | */
{{0|(0<<4)}, {20.36*0, 21.33*0}, 1},
- {{0|(1<<4)}, {20.36*1, 21.33*0}, 0},
- {{0|(2<<4)}, {20.36*2, 21.33*0}, 0},
- {{0|(3<<4)}, {20.36*3, 21.33*0}, 0},
- {{0|(4<<4)}, {20.36*4, 21.33*0}, 0},
- {{0|(5<<4)}, {20.36*5, 21.33*0}, 0},
- {{4|(0<<4)}, {20.36*6, 21.33*0}, 0},
- {{4|(1<<4)}, {20.36*7, 21.33*0}, 0},
- {{4|(2<<4)}, {20.36*8, 21.33*0}, 0},
- {{4|(3<<4)}, {20.36*9, 21.33*0}, 0},
- {{4|(4<<4)}, {20.36*10,21.33*0}, 0},
+ {{0|(1<<4)}, {20.36*1, 21.33*0}, 4},
+ {{0|(2<<4)}, {20.36*2, 21.33*0}, 4},
+ {{0|(3<<4)}, {20.36*3, 21.33*0}, 4},
+ {{0|(4<<4)}, {20.36*4, 21.33*0}, 4},
+ {{0|(5<<4)}, {20.36*5, 21.33*0}, 4},
+ {{4|(0<<4)}, {20.36*6, 21.33*0}, 4},
+ {{4|(1<<4)}, {20.36*7, 21.33*0}, 4},
+ {{4|(2<<4)}, {20.36*8, 21.33*0}, 4},
+ {{4|(3<<4)}, {20.36*9, 21.33*0}, 4},
+ {{4|(4<<4)}, {20.36*10,21.33*0}, 4},
{{4|(5<<4)}, {20.36*11,21.33*0}, 1},
{{1|(0<<4)}, {20.36*0, 21.33*1}, 1},
- {{1|(1<<4)}, {20.36*1, 21.33*1}, 0},
- {{1|(2<<4)}, {20.36*2, 21.33*1}, 0},
- {{1|(3<<4)}, {20.36*3, 21.33*1}, 0},
- {{1|(4<<4)}, {20.36*4, 21.33*1}, 0},
- {{1|(5<<4)}, {20.36*5, 21.33*1}, 0},
- {{5|(0<<4)}, {20.36*6, 21.33*1}, 0},
- {{5|(1<<4)}, {20.36*7, 21.33*1}, 0},
- {{5|(2<<4)}, {20.36*8, 21.33*1}, 0},
- {{5|(3<<4)}, {20.36*9, 21.33*1}, 0},
- {{5|(4<<4)}, {20.36*10,21.33*1}, 0},
+ {{1|(1<<4)}, {20.36*1, 21.33*1}, 4},
+ {{1|(2<<4)}, {20.36*2, 21.33*1}, 4},
+ {{1|(3<<4)}, {20.36*3, 21.33*1}, 4},
+ {{1|(4<<4)}, {20.36*4, 21.33*1}, 4},
+ {{1|(5<<4)}, {20.36*5, 21.33*1}, 4},
+ {{5|(0<<4)}, {20.36*6, 21.33*1}, 4},
+ {{5|(1<<4)}, {20.36*7, 21.33*1}, 4},
+ {{5|(2<<4)}, {20.36*8, 21.33*1}, 4},
+ {{5|(3<<4)}, {20.36*9, 21.33*1}, 4},
+ {{5|(4<<4)}, {20.36*10,21.33*1}, 4},
{{5|(5<<4)}, {20.36*11,21.33*1}, 1},
{{2|(0<<4)}, {20.36*0, 21.33*2}, 1},
- {{2|(1<<4)}, {20.36*1, 21.33*2}, 0},
- {{2|(2<<4)}, {20.36*2, 21.33*2}, 0},
- {{2|(3<<4)}, {20.36*3, 21.33*2}, 0},
- {{2|(4<<4)}, {20.36*4, 21.33*2}, 0},
- {{2|(5<<4)}, {20.36*5, 21.33*2}, 0},
- {{6|(0<<4)}, {20.36*6, 21.33*2}, 0},
- {{6|(1<<4)}, {20.36*7, 21.33*2}, 0},
- {{6|(2<<4)}, {20.36*8, 21.33*2}, 0},
- {{6|(3<<4)}, {20.36*9, 21.33*2}, 0},
- {{6|(4<<4)}, {20.36*10,21.33*2}, 0},
+ {{2|(1<<4)}, {20.36*1, 21.33*2}, 4},
+ {{2|(2<<4)}, {20.36*2, 21.33*2}, 4},
+ {{2|(3<<4)}, {20.36*3, 21.33*2}, 4},
+ {{2|(4<<4)}, {20.36*4, 21.33*2}, 4},
+ {{2|(5<<4)}, {20.36*5, 21.33*2}, 4},
+ {{6|(0<<4)}, {20.36*6, 21.33*2}, 4},
+ {{6|(1<<4)}, {20.36*7, 21.33*2}, 4},
+ {{6|(2<<4)}, {20.36*8, 21.33*2}, 4},
+ {{6|(3<<4)}, {20.36*9, 21.33*2}, 4},
+ {{6|(4<<4)}, {20.36*10,21.33*2}, 4},
{{6|(5<<4)}, {20.36*11,21.33*2}, 1},
{{3|(0<<4)}, {20.36*0, 21.33*3}, 1},
@@ -129,7 +129,7 @@ const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
{{3|(2<<4)}, {20.36*2, 21.33*3}, 1},
{{7|(3<<4)}, {20.36*3, 21.33*3}, 1},
{{7|(4<<4)}, {20.36*4, 21.33*3}, 1},
- {{7|(5<<4)}, {20.36*5.5,21.33*3}, 0},
+ {{7|(5<<4)}, {20.36*5.5,21.33*3}, 4},
{{7|(0<<4)}, {20.36*7, 21.33*3}, 1},
{{7|(1<<4)}, {20.36*8, 21.33*3}, 1},
{{7|(2<<4)}, {20.36*9, 21.33*3}, 1},