diff options
Diffstat (limited to 'keyboards/nack/config.h')
| -rw-r--r-- | keyboards/nack/config.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/keyboards/nack/config.h b/keyboards/nack/config.h new file mode 100644 index 000000000..9f0880e38 --- /dev/null +++ b/keyboards/nack/config.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 pastapojken <pastapojken@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | #define VENDOR_ID 0xDA12 | ||
| 22 | #define PRODUCT_ID 0x6060 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER pastapojken | ||
| 25 | #define PRODUCT nack keyboard | ||
| 26 | |||
| 27 | #define MATRIX_ROWS 4 | ||
| 28 | #define MATRIX_COLS 13 | ||
| 29 | |||
| 30 | #define MATRIX_ROW_PINS { A0, A1, A2, A3 } | ||
| 31 | #define MATRIX_COL_PINS { A6, A7, A8, A9, A10, B0, B1, B2, B6, B7, C13, C14, C15 } | ||
| 32 | |||
| 33 | #define DIODE_DIRECTION ROW2COL | ||
| 34 | #define DEBOUNCE 5 | ||
| 35 | #define TAPPING_TOGGLE 2 | ||
| 36 | |||
| 37 | #ifdef RGB_MATRIX_ENABLE | ||
| 38 | #define WS2812_SPI SPID1 | ||
| 39 | #define WS2812_SPI_MOSI_PAL_MODE 5 | ||
| 40 | #define RGB_DI_PIN B5 | ||
| 41 | #define RGBLED_NUM 52 | ||
| 42 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
| 43 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 // Max brightness of LEDs | ||
| 44 | #define RGB_MATRIX_STARTUP_VAL 64 | ||
| 45 | #define RGB_MATRIX_HUE_STEP 10 | ||
| 46 | #define RGB_MATRIX_SAT_STEP 10 | ||
| 47 | #define RGB_MATRIX_VAL_STEP 10 | ||
| 48 | #endif | ||
| 49 | |||
| 50 | #ifdef AUDIO_ENABLE | ||
| 51 | #define STARTUP_SONG SONG(NO_SOUND) | ||
| 52 | #define AUDIO_PIN A4 // Pin of the left speaker | ||
| 53 | #define AUDIO_PIN_ALT A5 // Pin of the right speaker | ||
| 54 | /* | ||
| 55 | * Basically, change this section once pull request 6165 has been merged | ||
| 56 | * https://github.com/qmk/qmk_firmware/pull/6165 | ||
| 57 | */ | ||
| 58 | #endif | ||
| 59 | |||
