diff options
Diffstat (limited to 'keyboards/splitkb/kyria')
| -rw-r--r-- | keyboards/splitkb/kyria/rev1/info.json | 22 | ||||
| -rw-r--r-- | keyboards/splitkb/kyria/rev1/rev1.c | 31 | ||||
| -rw-r--r-- | keyboards/splitkb/kyria/rev2/info.json | 22 | ||||
| -rw-r--r-- | keyboards/splitkb/kyria/rev2/rev2.c | 30 | 
4 files changed, 44 insertions, 61 deletions
| diff --git a/keyboards/splitkb/kyria/rev1/info.json b/keyboards/splitkb/kyria/rev1/info.json index 1e21c60978..54758180fa 100644 --- a/keyboards/splitkb/kyria/rev1/info.json +++ b/keyboards/splitkb/kyria/rev1/info.json @@ -19,6 +19,28 @@      },      "rgb_matrix": {          "driver": "ws2812", +        "layout": [ +            {"matrix": [2, 1], "x": 91, "y": 40, "flags": 255}, +            {"matrix": [3, 2], "x": 77, "y": 56, "flags": 255}, +            {"matrix": [3, 3], "x": 63, "y": 56, "flags": 255}, +            {"matrix": [1, 2], "x": 77, "y": 24, "flags": 255}, +            {"matrix": [0, 3], "x": 63, "y": 8, "flags": 255}, +            {"matrix": [0, 6], "x": 21, "y": 8, "flags": 255}, +            {"matrix": [2, 6], "x": 21, "y": 40, "flags": 255}, +            {"matrix": [2, 5], "x": 35, "y": 40, "flags": 255}, +            {"matrix": [2, 7], "x": 7, "y": 40, "flags": 255}, +            {"matrix": [0, 7], "x": 7, "y": 8, "flags": 255}, +            {"matrix": [6, 1], "x": 133, "y": 40, "flags": 255}, +            {"matrix": [7, 2], "x": 147, "y": 56, "flags": 255}, +            {"matrix": [7, 3], "x": 161, "y": 56, "flags": 255}, +            {"matrix": [5, 2], "x": 147, "y": 24, "flags": 255}, +            {"matrix": [4, 3], "x": 161, "y": 8, "flags": 255}, +            {"matrix": [4, 6], "x": 203, "y": 8, "flags": 255}, +            {"matrix": [6, 6], "x": 203, "y": 40, "flags": 255}, +            {"matrix": [6, 5], "x": 189, "y": 40, "flags": 255}, +            {"matrix": [6, 7], "x": 217, "y": 40, "flags": 255}, +            {"matrix": [4, 7], "x": 217, "y": 8, "flags": 255} +        ],          "max_brightness": 170,          "sleep": true,          "split_count": [10, 10] diff --git a/keyboards/splitkb/kyria/rev1/rev1.c b/keyboards/splitkb/kyria/rev1/rev1.c index db14411933..2b64504cc3 100644 --- a/keyboards/splitkb/kyria/rev1/rev1.c +++ b/keyboards/splitkb/kyria/rev1/rev1.c @@ -32,34 +32,3 @@ __attribute__ ((weak)) const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATR  const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {1, 0};  #    endif  #endif - -#ifdef RGB_MATRIX_ENABLE -/* Map physical under glow LEDs for RGB matrix support - * - *  09, 05, xx, xx, 04, xx,                   xx, 14, xx, xx, 15, 19, - *  xx, xx, xx, xx, xx, 03,                   13, xx, xx, xx, xx, xx, - *  08, 06, 07, xx, xx, xx, 00, xx,   xx, 10, xx, xx, xx, 17, 16, 18, - *                  xx, 02, 01, xx,   xx, xx, xx, 11, 12, xx - */ -led_config_t g_led_config = { { -    // Key Matrix to LED Index -    { NO_LED, NO_LED, NO_LED, 4,      NO_LED, NO_LED, 5,      9     }, -    { NO_LED, NO_LED, 3,      NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, 0,      NO_LED, NO_LED, NO_LED, 7,      6,      8      }, -    { NO_LED, NO_LED, 1,      2,      NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, NO_LED, NO_LED, 14,     NO_LED, NO_LED, 15,     19     }, -    { NO_LED, NO_LED, 13,     NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, 10,     NO_LED, NO_LED, NO_LED, 17,     16,     18     }, -    { NO_LED, NO_LED, 11,     12,     NO_LED, NO_LED, NO_LED, NO_LED }, -}, { -    // LED Index to Physical Position -    {91,40}, {77,56}, {63,56}, {77,24}, {63,8}, {21,8}, {21,40}, {35,40}, {7,40}, {7,8}, -    {133,40}, {147,56}, {161,56}, {147,24}, {161,8}, {203,8}, {203,40}, {189,40}, {217,40}, {217,8} -}, { -    // LED Index to Flag -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL -} }; -#endif diff --git a/keyboards/splitkb/kyria/rev2/info.json b/keyboards/splitkb/kyria/rev2/info.json index d1507a26b0..41c55cc025 100644 --- a/keyboards/splitkb/kyria/rev2/info.json +++ b/keyboards/splitkb/kyria/rev2/info.json @@ -19,6 +19,28 @@      },      "rgb_matrix": {          "driver": "ws2812", +        "layout": [ +            {"matrix": [1, 2], "x": 77, "y": 24, "flags": 255}, +            {"matrix": [0, 3], "x": 63, "y": 8, "flags": 255}, +            {"matrix": [0, 6], "x": 21, "y": 8, "flags": 255}, +            {"matrix": [2, 6], "x": 21, "y": 40, "flags": 255}, +            {"matrix": [2, 5], "x": 35, "y": 40, "flags": 255}, +            {"matrix": [3, 3], "x": 63, "y": 56, "flags": 255}, +            {"matrix": [3, 2], "x": 77, "y": 56, "flags": 255}, +            {"matrix": [2, 1], "x": 91, "y": 40, "flags": 255}, +            {"matrix": [2, 7], "x": 7, "y": 40, "flags": 255}, +            {"matrix": [0, 7], "x": 7, "y": 8, "flags": 255}, +            {"matrix": [5, 2], "x": 147, "y": 24, "flags": 255}, +            {"matrix": [4, 3], "x": 161, "y": 8, "flags": 255}, +            {"matrix": [4, 6], "x": 203, "y": 8, "flags": 255}, +            {"matrix": [6, 6], "x": 203, "y": 40, "flags": 255}, +            {"matrix": [6, 5], "x": 189, "y": 40, "flags": 255}, +            {"matrix": [7, 3], "x": 161, "y": 56, "flags": 255}, +            {"matrix": [7, 2], "x": 147, "y": 56, "flags": 255}, +            {"matrix": [6, 1], "x": 133, "y": 40, "flags": 255}, +            {"matrix": [6, 7], "x": 217, "y": 40, "flags": 255}, +            {"matrix": [4, 7], "x": 217, "y": 8, "flags": 255} +        ],          "max_brightness": 170,          "sleep": true,          "split_count": [10, 10] diff --git a/keyboards/splitkb/kyria/rev2/rev2.c b/keyboards/splitkb/kyria/rev2/rev2.c index 37300c8188..70f894b64d 100644 --- a/keyboards/splitkb/kyria/rev2/rev2.c +++ b/keyboards/splitkb/kyria/rev2/rev2.c @@ -47,33 +47,3 @@ __attribute__ ((weak)) const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATR  const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {1, 0};  #    endif  #endif - -#ifdef RGB_MATRIX_ENABLE -/* Map physical under glow LEDs for RGB matrix support - *  09, 02, xx, xx, 01, xx,                   xx, 11, xx, xx, 12, 19, - *  xx, xx, xx, xx, xx, 00,                   10, xx, xx, xx, xx, xx, - *  08, 03, 04, xx, xx, xx, 07, xx,   xx, 17, xx, xx, xx, 14, 13, 18, - *                  xx, 05, 06, xx,   xx, xx, xx, 16, 15, xx - */ -led_config_t g_led_config = { { -    // Key Matrix to LED Index -    { NO_LED, NO_LED, NO_LED, 1,      NO_LED, NO_LED, 2,      9     }, -    { NO_LED, NO_LED, 0,      NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, 7,      NO_LED, NO_LED, NO_LED, 4,      3,      8      }, -    { NO_LED, NO_LED, 6,      5,      NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, NO_LED, NO_LED, 11,     NO_LED, NO_LED, 12,     19     }, -    { NO_LED, NO_LED, 10,     NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, -    { NO_LED, 17,     NO_LED, NO_LED, NO_LED, 14,     13,     18     }, -    { NO_LED, NO_LED, 16,     15,     NO_LED, NO_LED, NO_LED, NO_LED }, -}, { -    // LED Index to Physical Position -    {77,24}, {63,8}, {21,8}, {21,40}, {35,40}, {63,56}, {77,56}, {91,40}, {7,40}, {7,8}, -    {147,24}, {161,8}, {203,8}, {203,40}, {189,40}, {161,56}, {147,56}, {133,40}, {217,40}, {217,8} -}, { -    // LED Index to Flag -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, -    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL -} }; -#endif | 
