forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qmk#15 from sadekbaroudi/fp/config_rgb_matrix_support
added support for rgb matrix as well for everything that's currently …
- Loading branch information
Showing
30 changed files
with
572 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* Copyright 2021 Sadek Baroudi <sadekbaroudi@gmail.com> | ||
* | ||
* 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/>. | ||
*/ | ||
#include "v1.h" | ||
|
||
#ifdef RGB_MATRIX_ENABLE | ||
// 6 column config | ||
led_config_t g_led_config = { { | ||
{2, 3, 8, 9, 14, 15, 26, 27}, | ||
{1, 4, 7, 10, 13, 16, 25, 28}, | ||
{0, 5, 6, 11, 12, 17, 24, 29}, | ||
{NO_LED, NO_LED, 31, 35, 33, 37, 36, 39}, | ||
{NO_LED, NO_LED, 30, 32, 34, 38, 41, 40}, | ||
{NO_LED, NO_LED, 23, 18, 19, 20, 21, 22} | ||
}, { | ||
{0,32},{3,19},{7,5},{25,4},{21,18},{17,31},{35,26},{39,12},{43,0},{60,0},{56,12},{52,26}, | ||
{66,33},{70,20},{74,6},{89,12},{85,25},{81,38},{61,50},{77,55},{93,63},{129,63},{145,55},{161,50}, | ||
{141,38},{137,25},{133,12},{148,6},{152,20},{156,33},{170,26},{166,12},{162,0},{179,0},{183,12},{187,26}, | ||
{205,31},{201,18},{197,4},{215,5},{219,19},{223,32} | ||
}, { | ||
1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 1, 1, 1 | ||
} }; | ||
|
||
// 5 column config | ||
/* | ||
led_config_t g_led_config = { { | ||
{NO_LED, 0, 5, 6, 11, 12, 23, 24}, | ||
{NO_LED, 1, 4, 7, 10, 13, 22, 25}, | ||
{NO_LED, 2, 3, 8, 9, 14, 21, 26}, | ||
{NO_LED, NO_LED, 28, 32, 30, 34, 33, NO_LED}, | ||
{NO_LED, NO_LED, 27, 29, 31, 35, NO_LED, NO_LED}, | ||
{NO_LED, NO_LED, 20, 15, 16, 17, 18, 19} | ||
}, { | ||
{25,4},{21,18},{17,31},{35,26},{39,12},{43,0},{60,0},{56,12},{52,26}, | ||
{66,33},{70,20},{74,6},{89,12},{85,25},{81,38},{61,50},{77,55},{93,63},{129,63},{145,55},{161,50}, | ||
{141,38},{137,25},{133,12},{148,6},{152,20},{156,33},{170,26},{166,12},{162,0},{179,0},{183,12},{187,26}, | ||
{205,31},{201,18},{197,4} | ||
}, { | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 1, 1, 1, | ||
1, 1, 1, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
} }; | ||
*/ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* Copyright 2021 Sadek Baroudi <sadekbaroudi@gmail.com> | ||
* | ||
* 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/>. | ||
*/ | ||
#include "v2.h" | ||
|
||
#ifdef RGB_MATRIX_ENABLE | ||
// 6 column config | ||
led_config_t g_led_config = { { | ||
{2, 3, 8, 9, 14, 15, 26, 27}, | ||
{1, 4, 7, 10, 13, 16, 25, 28}, | ||
{0, 5, 6, 11, 12, 17, 24, 29}, | ||
{NO_LED, NO_LED, 31, 35, 33, 37, 36, 39}, | ||
{NO_LED, NO_LED, 30, 32, 34, 38, 41, 40}, | ||
{NO_LED, NO_LED, 23, 18, 19, 20, 21, 22} | ||
}, { | ||
{0,32},{3,19},{7,5},{25,4},{21,18},{17,31},{35,26},{39,12},{43,0},{60,0},{56,12},{52,26}, | ||
{66,33},{70,20},{74,6},{89,12},{85,25},{81,38},{61,50},{77,55},{93,63},{129,63},{145,55},{161,50}, | ||
{141,38},{137,25},{133,12},{148,6},{152,20},{156,33},{170,26},{166,12},{162,0},{179,0},{183,12},{187,26}, | ||
{205,31},{201,18},{197,4},{215,5},{219,19},{223,32} | ||
}, { | ||
1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 1, 1, 1 | ||
} }; | ||
|
||
// 5 column config | ||
/* | ||
led_config_t g_led_config = { { | ||
{NO_LED, 0, 5, 6, 11, 12, 23, 24}, | ||
{NO_LED, 1, 4, 7, 10, 13, 22, 25}, | ||
{NO_LED, 2, 3, 8, 9, 14, 21, 26}, | ||
{NO_LED, NO_LED, 28, 32, 30, 34, 33, NO_LED}, | ||
{NO_LED, NO_LED, 27, 29, 31, 35, NO_LED, NO_LED}, | ||
{NO_LED, NO_LED, 20, 15, 16, 17, 18, 19} | ||
}, { | ||
{25,4},{21,18},{17,31},{35,26},{39,12},{43,0},{60,0},{56,12},{52,26}, | ||
{66,33},{70,20},{74,6},{89,12},{85,25},{81,38},{61,50},{77,55},{93,63},{129,63},{145,55},{161,50}, | ||
{141,38},{137,25},{133,12},{148,6},{152,20},{156,33},{170,26},{166,12},{162,0},{179,0},{183,12},{187,26}, | ||
{205,31},{201,18},{197,4} | ||
}, { | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 1, 1, 1, | ||
1, 1, 1, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
} }; | ||
*/ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* Copyright 2021 Sadek Baroudi <sadekbaroudi@gmail.com> | ||
* | ||
* 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/>. | ||
*/ | ||
#include "v3.h" | ||
|
||
#ifdef RGB_MATRIX_ENABLE | ||
led_config_t g_led_config = { { | ||
{ 3, 9, 15, 10, 16, 27, 28, 4 }, | ||
{ 2, 8, 14, 11, 17, 26, 29, 5 }, | ||
{ 1, 7, 13, 12, 18, 25, 30, 6 }, | ||
{ NO_LED, 32, 34, 36, 38, 37, 40, NO_LED }, | ||
{ NO_LED, 31, 35, 33, 39, 42, 41, NO_LED }, | ||
{ NO_LED, 24, 20, 19, 21, 22, 23, NO_LED } | ||
}, { | ||
{0,32},{3,19},{7,5},{25,4},{21,18},{17,31},{35,26},{39,12},{43,0},{60,0},{56,12},{52,26}, | ||
{66,33},{70,20},{74,6},{89,12},{85,25},{81,38},{61,50},{77,55},{93,63},{129,63},{145,55},{161,50}, | ||
{141,38},{137,25},{133,12},{148,6},{152,20},{156,33},{170,26},{166,12},{162,0},{179,0},{183,12},{187,26}, | ||
{205,31},{201,18},{197,4},{215,5},{219,19},{223,32} | ||
}, { | ||
1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, | ||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
4, 4, 4, 1, 1, 1 | ||
} }; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.