aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/doro67
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/doro67
parent1d784f0f9575b70e35c9c8338b0ff80dc7316d7e (diff)
downloadfirmware-a7113c8ed090d0ac647f30ee9b8ef41252e568ed.tar.gz
firmware-a7113c8ed090d0ac647f30ee9b8ef41252e568ed.tar.bz2
firmware-a7113c8ed090d0ac647f30ee9b8ef41252e568ed.zip
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/doro67')
-rw-r--r--keyboards/doro67/rgb/rgb.c100
1 files changed, 50 insertions, 50 deletions
diff --git a/keyboards/doro67/rgb/rgb.c b/keyboards/doro67/rgb/rgb.c
index 6f39e00c6..8aaf6ef4a 100644
--- a/keyboards/doro67/rgb/rgb.c
+++ b/keyboards/doro67/rgb/rgb.c
@@ -52,73 +52,73 @@ void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}
-const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
- {{0|(0<<4)}, {15*0, 0}, 0}, // Esc
- {{0|(1<<4)}, {15*1, 0}, 0}, // 1
- {{0|(2<<4)}, {15*2, 0}, 0}, // 2
- {{0|(3<<4)}, {15*3, 0}, 0}, // 3
- {{0|(4<<4)}, {15*4, 0}, 0}, // 4
- {{0|(5<<4)}, {15*5, 0}, 0}, // 5
- {{0|(6<<4)}, {15*6, 0}, 0}, // 6
- {{0|(7<<4)}, {15*7, 0}, 0}, // 7
- {{0|(8<<4)}, {15*8, 0}, 0}, // 8
- {{0|(9<<4)}, {15*9, 0}, 0}, // 9
- {{0|(10<<4)}, {15*10, 0}, 0}, // 0
- {{0|(11<<4)}, {15*11, 0}, 0}, // -
- {{0|(12<<4)}, {15*12, 0}, 0}, // =
+rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
+ {{0|(0<<4)}, {15*0, 0}, 4}, // Esc
+ {{0|(1<<4)}, {15*1, 0}, 4}, // 1
+ {{0|(2<<4)}, {15*2, 0}, 4}, // 2
+ {{0|(3<<4)}, {15*3, 0}, 4}, // 3
+ {{0|(4<<4)}, {15*4, 0}, 4}, // 4
+ {{0|(5<<4)}, {15*5, 0}, 4}, // 5
+ {{0|(6<<4)}, {15*6, 0}, 4}, // 6
+ {{0|(7<<4)}, {15*7, 0}, 4}, // 7
+ {{0|(8<<4)}, {15*8, 0}, 4}, // 8
+ {{0|(9<<4)}, {15*9, 0}, 4}, // 9
+ {{0|(10<<4)}, {15*10, 0}, 4}, // 0
+ {{0|(11<<4)}, {15*11, 0}, 4}, // -
+ {{0|(12<<4)}, {15*12, 0}, 4}, // =
{{0|(13<<4)}, {15*13.5, 0}, 1}, // Backspace
{{0|(14<<4)}, {15*15, 0}, 1}, // Ins
{{1|(0<<4)}, {15*0.5, 16}, 1}, // Tab
- {{1|(1<<4)}, {15*1.5, 16}, 0}, // Q
- {{1|(2<<4)}, {15*2.5, 16}, 0}, // W
- {{1|(3<<4)}, {15*3.5, 16}, 0}, // E
- {{1|(4<<4)}, {15*4.5, 16}, 0}, // R
- {{1|(5<<4)}, {15*5.5, 16}, 0}, // T
- {{1|(6<<4)}, {15*6.5, 16}, 0}, // Y
- {{1|(7<<4)}, {15*7.5, 16}, 0}, // U
- {{1|(8<<4)}, {15*8.5, 16}, 0}, // I
- {{1|(9<<4)}, {15*9.5, 16}, 0}, // O
- {{1|(10<<4)}, {15*10.5, 16}, 0}, // P
- {{1|(11<<4)}, {15*11.5, 16}, 0}, // [
- {{1|(12<<4)}, {15*12.5, 16}, 0}, // ]
- {{1|(13<<4)}, {15*13.75, 16}, 1}, //
+ {{1|(1<<4)}, {15*1.5, 16}, 4}, // Q
+ {{1|(2<<4)}, {15*2.5, 16}, 4}, // W
+ {{1|(3<<4)}, {15*3.5, 16}, 4}, // E
+ {{1|(4<<4)}, {15*4.5, 16}, 4}, // R
+ {{1|(5<<4)}, {15*5.5, 16}, 4}, // T
+ {{1|(6<<4)}, {15*6.5, 16}, 4}, // Y
+ {{1|(7<<4)}, {15*7.5, 16}, 4}, // U
+ {{1|(8<<4)}, {15*8.5, 16}, 4}, // I
+ {{1|(9<<4)}, {15*9.5, 16}, 4}, // O
+ {{1|(10<<4)}, {15*10.5, 16}, 4}, // P
+ {{1|(11<<4)}, {15*11.5, 16}, 4}, // [
+ {{1|(12<<4)}, {15*12.5, 16}, 4}, // ]
+ {{1|(13<<4)}, {15*13.75, 16}, 1}, //
{{1|(14<<4)}, {15*15, 16}, 1}, // Del
{{2|(0<<4)}, {15*0.75, 32}, 1}, // Capslock
- {{2|(1<<4)}, {15*1.75, 32}, 0}, // A
- {{2|(2<<4)}, {15*2.75, 32}, 0}, // S
- {{2|(3<<4)}, {15*3.75, 32}, 0}, // D
- {{2|(4<<4)}, {15*4.75, 32}, 0}, // F
- {{2|(5<<4)}, {15*5.75, 32}, 0}, // G
- {{2|(6<<4)}, {15*6.75, 32}, 0}, // H
- {{2|(7<<4)}, {15*7.75, 32}, 0}, // J
- {{2|(8<<4)}, {15*8.75, 32}, 0}, // K
- {{2|(9<<4)}, {15*9.75, 32}, 0}, // L
- {{2|(10<<4)}, {15*10.75, 32}, 0}, // ;
- {{2|(11<<4)}, {15*11.75, 32}, 0}, // '
+ {{2|(1<<4)}, {15*1.75, 32}, 4}, // A
+ {{2|(2<<4)}, {15*2.75, 32}, 4}, // S
+ {{2|(3<<4)}, {15*3.75, 32}, 4}, // D
+ {{2|(4<<4)}, {15*4.75, 32}, 4}, // F
+ {{2|(5<<4)}, {15*5.75, 32}, 4}, // G
+ {{2|(6<<4)}, {15*6.75, 32}, 4}, // H
+ {{2|(7<<4)}, {15*7.75, 32}, 4}, // J
+ {{2|(8<<4)}, {15*8.75, 32}, 4}, // K
+ {{2|(9<<4)}, {15*9.75, 32}, 4}, // L
+ {{2|(10<<4)}, {15*10.75, 32}, 4}, // ;
+ {{2|(11<<4)}, {15*11.75, 32}, 4}, // '
{{2|(13<<4)}, {15*13.25, 32}, 1}, // Enter
{{2|(14<<4)}, {15*15, 32}, 1}, // Pgup
{{3|(0<<4)}, {15*1.25, 48}, 1}, // LShift
- {{3|(2<<4)}, {15*2, 48}, 0}, // Z
- {{3|(3<<4)}, {15*3, 48}, 0}, // X
- {{3|(4<<4)}, {15*4, 48}, 0}, // C
- {{3|(5<<4)}, {15*5, 48}, 0}, // V
- {{3|(6<<4)}, {15*6, 48}, 0}, // B
- {{3|(7<<4)}, {15*7, 48}, 0}, // N
- {{3|(8<<4)}, {15*8, 48}, 0}, // M
- {{3|(9<<4)}, {15*9, 48}, 0}, // ,
- {{3|(10<<4)}, {15*10, 48}, 0}, // .
- {{3|(11<<4)}, {15*11, 48}, 0}, // /
+ {{3|(2<<4)}, {15*2, 48}, 4}, // Z
+ {{3|(3<<4)}, {15*3, 48}, 4}, // X
+ {{3|(4<<4)}, {15*4, 48}, 4}, // C
+ {{3|(5<<4)}, {15*5, 48}, 4}, // V
+ {{3|(6<<4)}, {15*6, 48}, 4}, // B
+ {{3|(7<<4)}, {15*7, 48}, 4}, // N
+ {{3|(8<<4)}, {15*8, 48}, 4}, // M
+ {{3|(9<<4)}, {15*9, 48}, 4}, // ,
+ {{3|(10<<4)}, {15*10, 48}, 4}, // .
+ {{3|(11<<4)}, {15*11, 48}, 4}, // /
{{3|(12<<4)}, {15*12.75, 48}, 1}, // Shift
{{3|(13<<4)}, {15*14, 48}, 1}, // Up
{{3|(14<<4)}, {15*15, 48}, 1}, // Pgdn
-
+
{{4|(0<<4)}, {15*0.25, 64}, 1}, // Ctrl
{{4|(1<<4)}, {15*1.5, 64}, 1}, // GUI
{{4|(2<<4)}, {15*2.25, 64}, 1}, // Alt
- {{4|(3<<4)}, {15*6.75, 64}, 0}, // Space
+ {{4|(3<<4)}, {15*6.75, 64}, 4}, // Space
{{4|(9<<4)}, {15*9, 64}, 1}, // RAlt
{{4|(10<<4)}, {15*10.25, 64}, 1}, // FN
{{4|(12<<4)}, {15*13, 64}, 1}, // Left