Skip to content

Commit

Permalink
Merge pull request #119 from jactry/imk64-led-matrix
Browse files Browse the repository at this point in the history
keyboards/imk64: Add LED matrix config for PCB that without bottom lights.
  • Loading branch information
Huckies authored Jun 9, 2023
2 parents cdb66bc + cafb27e commit 9bfb425
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
28 changes: 24 additions & 4 deletions qmk_porting/keyboards/imk64/imk64.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2023 SharpSnail01 <https://github.com/SharpSnail01>
Copyright 2023 Jactry Zeng
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -21,21 +22,39 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* clang-format off */
led_config_t g_led_config = {
#if RGBLED_NUM == 68
{
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14},
{28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41},
{55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42},
{56, 57, 58, 59, NO_LED, NO_LED, NO_LED, 61, 62, 63, 64, 65, 66, 67},
}, {
{0,0}, {17,0}, {34,0}, {52,0}, {69,0}, {86,0}, {103,0}, {121,0}, {138,0}, {155,0}, {172,0}, {190,0}, {207,0}, {224,0},
{224,16}, {207,16}, {190,16}, {172,16}, {155,16}, {138,16}, {121,16}, {103,16}, {86,16}, {69,16}, {52,16}, {34,16}, {17,16}, {0,16},
{0,32}, {17,32}, {34,32}, {52,32}, {69,32}, {86,32}, {103,32}, {121,32}, {138,32}, {155,32}, {172,32}, {190,32}, {207,32}, {224,32},
{224,48}, {207,48}, {190,48}, {172,48}, {155,48}, {138,48}, {121,48}, {103,48}, {86,48}, {69,48}, {52,48}, {34,48}, {17,48}, {0,48},
{0,64}, {17,64}, {34,64}, {69,64}, {121,64}, {138,64}, {155,64}, {172,64}, {190,64}, {207,64}, {224,64},
}, {
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, 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, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
}
#else
{
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14},
{28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, NO_LED},
{54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41},
{55, 56, 57, 58, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 59, 60, 61, 62, 63},


{55, 56, 57, 58, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 59, 60, 61, 62, 63},
}, {
{0,0},{17,0},{34,0},{52,0},{69,0},{86,0},{103,0},{121,0},{138,0},{155,0},{172,0},{190,0},{207,0},{224,0},
{224,16},{207,16},{190,16},{172,16},{155,16},{138,16},{121,16},{103,16},{86,16},{69,16},{52,16},{34,16},{17,16},{0,16},
{0,32},{17,32},{34,32},{52,32},{69,32},{86,32},{103,32},{121,32},{138,32},{155,32},{172,32},{190,32},{207,32},
{224,48},{207,48},{190,48},{172,48},{155,48},{138,48},{121,48},{103,48},{86,48},{69,48},{52,48},{34,48},{17,48},{0,48},
{0,64},{17,64},{34,64},{52,64}, {155,64}, {172,64}, {190,64},{207,64},{224,64},

}, {
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, 4,
Expand All @@ -44,6 +63,7 @@ led_config_t g_led_config = {
4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
}
#endif
};
/* clang-format on */

Expand Down
18 changes: 18 additions & 0 deletions qmk_porting/keyboards/imk64/keymaps/jactry/qmk_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright 2023 Jactry Zeng
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#define RGBLED_NUM 68

0 comments on commit 9bfb425

Please sign in to comment.