diff options
| author | Luis Godinez <beantek@gmail.com> | 2020-11-19 11:28:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 19:28:53 +0000 |
| commit | 386cff8cf5645d742e193c4d53c0b6ff52c20885 (patch) | |
| tree | 953e5b9bc6d52fb3627bad7bbe6e254518b92901 /keyboards/ungodly/launch_pad/config.h | |
| parent | e7497b3fba0c2836c9bb5087eee8b15d6ffc1362 (diff) | |
| download | qmk_firmware-386cff8cf5645d742e193c4d53c0b6ff52c20885.tar.gz qmk_firmware-386cff8cf5645d742e193c4d53c0b6ff52c20885.zip | |
Add Launch Pad by Ungodly Design (#10952)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'keyboards/ungodly/launch_pad/config.h')
| -rw-r--r-- | keyboards/ungodly/launch_pad/config.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/ungodly/launch_pad/config.h b/keyboards/ungodly/launch_pad/config.h new file mode 100644 index 000000000..c4da09760 --- /dev/null +++ b/keyboards/ungodly/launch_pad/config.h | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x5544 // "UD" = Ungodly Design | ||
| 22 | #define PRODUCT_ID 0x4C50 // "LP" = Launch Pad | ||
| 23 | #define DEVICE_VER 0x9999 | ||
| 24 | #define MANUFACTURER Ungodly Design | ||
| 25 | #define PRODUCT Launch Pad | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 5 | ||
| 29 | #define MATRIX_COLS 4 | ||
| 30 | |||
| 31 | /* Keyboard Matrix Assignments */ | ||
| 32 | #define MATRIX_ROW_PINS { D4, D6, D7, B4, B5 } | ||
| 33 | #define MATRIX_COL_PINS { B0, B1, B2, B3 } | ||
| 34 | |||
| 35 | /* COL2ROW or ROW2COL */ | ||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | /* Rotary Encoder Assignment */ | ||
| 39 | #define ENCODERS_PAD_A { C6 } | ||
| 40 | #define ENCODERS_PAD_B { B6 } | ||
| 41 | #define ENCODER_RESOLUTION 2 | ||
| 42 | |||
| 43 | /* Midi Slider */ | ||
| 44 | #define SLIDER_PIN F6 | ||
| 45 | |||
| 46 | /* RGB Matrix configuration */ | ||
| 47 | #ifdef RGB_MATRIX_ENABLE | ||
| 48 | # define RGB_MATRIX_KEYPRESSES | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define RGB_DI_PIN F7 | ||
| 52 | #ifdef RGB_DI_PIN | ||
| 53 | # define RGBLED_NUM 22 | ||
| 54 | # define RGBLIGHT_HUE_STEP 8 | ||
| 55 | # define RGBLIGHT_SAT_STEP 8 | ||
| 56 | # define RGBLIGHT_VAL_STEP 8 | ||
| 57 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 58 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 59 | /*== all animations enable ==*/ | ||
| 60 | # define RGBLIGHT_ANIMATIONS | ||
| 61 | // RGB Matrix | ||
| 62 | # ifdef RGB_MATRIX_ENABLE | ||
| 63 | # define DRIVER_LED_TOTAL RGBLED_NUM | ||
| 64 | # endif | ||
| 65 | #endif | ||
| 66 | |||
| 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 68 | #define DEBOUNCE 5 | ||
| 69 | |||
| 70 | #define LOCKING_RESYNC_ENABLE | ||
| 71 | |||
| 72 | #define MIDI_ADVANCED | ||
