diff options
Diffstat (limited to 'keyboards/geekboards/macropad_v2/macropad_v2.c')
| -rw-r--r-- | keyboards/geekboards/macropad_v2/macropad_v2.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/keyboards/geekboards/macropad_v2/macropad_v2.c b/keyboards/geekboards/macropad_v2/macropad_v2.c new file mode 100644 index 000000000..df8581cc5 --- /dev/null +++ b/keyboards/geekboards/macropad_v2/macropad_v2.c | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #ifdef RGB_MATRIX_ENABLE | ||
| 19 | led_config_t g_led_config = { { | ||
| 20 | // Key Matrix to LED Index | ||
| 21 | {13,19,20,26}, {6,0,38,33}, | ||
| 22 | }, { | ||
| 23 | // LED Index to Physical Position | ||
| 24 | {85,46}, | ||
| 25 | {85,64},{67,64},{49,64},{31,64},{13,64}, | ||
| 26 | {31,46}, | ||
| 27 | {0,55},{0,46},{0,37},{0,27},{0,18},{0,9}, | ||
| 28 | {31,18}, | ||
| 29 | {13,0},{31,0},{49,0},{67,0},{85,0}, | ||
| 30 | {85,18},{139,18}, | ||
| 31 | {139,0},{157,0},{175,0},{193,0},{211,0}, | ||
| 32 | {193,18}, | ||
| 33 | {224,9},{224,18},{224,27},{224,37},{224,46},{224,55}, | ||
| 34 | {193,46}, | ||
| 35 | {211,64},{193,64},{175,64},{157,64}, | ||
| 36 | {139,46}, | ||
| 37 | {139,64},{121,64},{103,64}, | ||
| 38 | }, { | ||
| 39 | // LED Index to Flag, 2=backlight, 4=key | ||
| 40 | 4, | ||
| 41 | 2, 2, 2, 2, 2, | ||
| 42 | 4, | ||
| 43 | 2, 2, 2, 2, 2, 2, | ||
| 44 | 4, | ||
| 45 | 2, 2, 2, 2, 2, | ||
| 46 | 4, 4, | ||
| 47 | 2, 2, 2, 2, 2, | ||
| 48 | 4, | ||
| 49 | 2, 2, 2, 2, 2, 2, | ||
| 50 | 4, | ||
| 51 | 2, 2, 2, 2, | ||
| 52 | 4, | ||
| 53 | 2, 2, 2 | ||
| 54 | } }; | ||
| 55 | |||
| 56 | void suspend_power_down_kb(void) { | ||
| 57 | rgb_matrix_set_suspend_state(true); | ||
| 58 | suspend_power_down_user(); | ||
| 59 | } | ||
| 60 | |||
| 61 | void suspend_wakeup_init_kb(void) { | ||
| 62 | rgb_matrix_set_suspend_state(false); | ||
| 63 | suspend_wakeup_init_user(); | ||
| 64 | } | ||
| 65 | #endif | ||
