diff options
| author | TurboMech <32869044+TurboMech@users.noreply.github.com> | 2017-12-31 22:39:34 -0500 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-31 22:39:34 -0500 |
| commit | e9f44ee96d7c89ea9c6b8a199aba7f938d826b62 (patch) | |
| tree | 4d466450c532166710cb1733961f145c3c40516a /users/turbomech/turbomech.h | |
| parent | 9cb80d68e299ff6e2a1a520e216d41784a0d5d33 (diff) | |
| download | qmk_firmware-e9f44ee96d7c89ea9c6b8a199aba7f938d826b62.tar.gz qmk_firmware-e9f44ee96d7c89ea9c6b8a199aba7f938d826b62.zip | |
added ALU84 keyboard and TurboMech user space (#2206)
* Added ALU84
Added ALU84 from mechkeys.ca. TurboMech keymap is MacOS oriented, need to still update the defualt keymap.
* added alu84 and TurboMech userspace
* updated keymap, config.h and rules.mk for alu84
Diffstat (limited to 'users/turbomech/turbomech.h')
| -rw-r--r-- | users/turbomech/turbomech.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/users/turbomech/turbomech.h b/users/turbomech/turbomech.h new file mode 100644 index 000000000..87fd4da68 --- /dev/null +++ b/users/turbomech/turbomech.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2017 @TurboMech /u/TurboMech <discord> @A9entOran9e#6134 | ||
| 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 | |||
| 17 | |||
| 18 | #ifndef USERSPACE | ||
| 19 | #define USERSPACE | ||
| 20 | |||
| 21 | #include "quantum.h" | ||
| 22 | |||
| 23 | // Definine layer names | ||
| 24 | #define _QWERTY 0 | ||
| 25 | #define _FUNCTION 1 | ||
| 26 | |||
| 27 | #ifdef RGBLIGHT_ENABLE | ||
| 28 | //values are HSV (Hue, Sat, Val) - except Sat and Val equal 255 for 100%. | ||
| 29 | #define rgblight_set_blue rgblight_sethsv (240, 255, 255); | ||
| 30 | #define rgblight_set_red rgblight_sethsv (0, 255, 255); | ||
| 31 | #define rgblight_set_green rgblight_sethsv (120, 255, 255); | ||
| 32 | #define rgblight_set_orange rgblight_sethsv (30, 255, 255); | ||
| 33 | #define rgblight_set_teal rgblight_sethsv (195, 255, 255); | ||
| 34 | #define rgblight_set_magenta rgblight_sethsv (300, 255, 255); | ||
| 35 | #define rgblight_set_yellow rgblight_sethsv (60, 255, 255); | ||
| 36 | #define rgblight_set_purple rgblight_sethsv (270, 255, 255); | ||
| 37 | #define rgblight_set_cyan rgblight_sethsv (180, 255, 255); | ||
| 38 | #define rgblight_set_white rgblight_sethsv (0, 0, 255) | ||
| 39 | #endif | ||
| 40 | |||
| 41 | //must use KC_RESET in order to have RESET indicate a color/mode | ||
| 42 | enum userspace_custom_keycodes { | ||
| 43 | EPRM = SAFE_RANGE, //should always be here | ||
| 44 | KC_RESET, | ||
| 45 | KC_MAKE_ALU84, | ||
| 46 | KC_QMK, | ||
| 47 | _FLIP, | ||
| 48 | NEW_SAFE_RANGE | ||
| 49 | }; | ||
| 50 | #endif | ||
