diff options
Diffstat (limited to 'keyboards/sofle/keyhive/keyhive.h')
| -rwxr-xr-x | keyboards/sofle/keyhive/keyhive.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/keyboards/sofle/keyhive/keyhive.h b/keyboards/sofle/keyhive/keyhive.h new file mode 100755 index 000000000..d8b21e16d --- /dev/null +++ b/keyboards/sofle/keyhive/keyhive.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* Copyright | ||
| 2 | * 2021 solartempest | ||
| 3 | * 2021 QMK | ||
| 4 | * | ||
| 5 | * This program is free software: you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation, either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #include "quantum.h" | ||
| 22 | |||
| 23 | // clang-format off | ||
| 24 | // Extra keys are added for rotary encoder support in VIA | ||
| 25 | #define LAYOUT( \ | ||
| 26 | LA1, LA2, LA3, LA4, LA5, LA6, RA6, RA5, RA4, RA3, RA2, RA1, \ | ||
| 27 | LB1, LB2, LB3, LB4, LB5, LB6, RB6, RB5, RB4, RB3, RB2, RB1, \ | ||
| 28 | LC1, LC2, LC3, LC4, LC5, LC6, RC6, RC5, RC4, RC3, RC2, RC1, \ | ||
| 29 | LD1, LD2, LD3, LD4, LD5, LD6, LE1, RE6, RD6, RD5, RD4, RD3, RD2, RD1, \ | ||
| 30 | LE2, LE3, LE4, LE5, LE6, RE5, RE4, RE3, RE2, RE1 \ | ||
| 31 | ) \ | ||
| 32 | { \ | ||
| 33 | { LA1, LA2, LA3, LA4, LA5, LA6 }, \ | ||
| 34 | { LB1, LB2, LB3, LB4, LB5, LB6 }, \ | ||
| 35 | { LC1, LC2, LC3, LC4, LC5, LC6 }, \ | ||
| 36 | { LD1, LD2, LD3, LD4, LD5, LD6 }, \ | ||
| 37 | { LE1, LE2, LE3, LE4, LE5, LE6 }, \ | ||
| 38 | { RA1, RA2, RA3, RA4, RA5, RA6 }, \ | ||
| 39 | { RB1, RB2, RB3, RB4, RB5, RB6 }, \ | ||
| 40 | { RC1, RC2, RC3, RC4, RC5, RC6 }, \ | ||
| 41 | { RD1, RD2, RD3, RD4, RD5, RD6 }, \ | ||
| 42 | { RE1, RE2, RE3, RE4, RE5, RE6 } \ | ||
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | //RGB LED Conversion macro from physical array to electric array (+146 to firmware size) | ||
| 47 | // clang-format on | ||
