aboutsummaryrefslogtreecommitdiff
path: root/keyboards/utd80/config.h
diff options
context:
space:
mode:
authorDominic Gan <dominicgangx@gmail.com>2021-02-19 04:30:16 +0800
committerGitHub <noreply@github.com>2021-02-18 15:30:16 -0500
commitf4f5ddfec23be047f3b4e914db8f674593a8e8e5 (patch)
tree5c35082ee6cd76dfd4123fc96e7f3956cf0ca3c3 /keyboards/utd80/config.h
parent50c4afa841fdb0d46009f80335bef9777a8ecd52 (diff)
downloadqmk_firmware-f4f5ddfec23be047f3b4e914db8f674593a8e8e5.tar.gz
qmk_firmware-f4f5ddfec23be047f3b4e914db8f674593a8e8e5.zip
Add UTD80 PCB (#11799)
* Create readme.md * Add files via upload * Create readme.md * Add files via upload * Update utd80.h * Update utd80.c * Update keymap.c Change 6 length underscore to 7. * Update keyboards/utd80/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/utd80/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/utd80/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/utd80/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/utd80/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update utd80.c * Update utd80.c * Update keymap.c * Apply #7701 PR review suggestions * Add GPL license headers * Replace led implementation with definition * Add VIA keymap for UTD80 * Update attributions Co-authored-by: UTDKeyboard <59077857+utdkeyboard@users.noreply.github.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: fauxpark <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/utd80/config.h')
-rw-r--r--keyboards/utd80/config.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/keyboards/utd80/config.h b/keyboards/utd80/config.h
new file mode 100644
index 000000000..c5a9697f5
--- /dev/null
+++ b/keyboards/utd80/config.h
@@ -0,0 +1,68 @@
1/* Copyright 2021 UTDKeyboard & Dominic Gan
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 0xFEED
22#define PRODUCT_ID 0x001C
23#define DEVICE_VER 0x0001
24#define MANUFACTURER UTD
25#define PRODUCT UTD80
26
27/* key matrix size */
28#define MATRIX_ROWS 6
29#define MATRIX_COLS 16
30
31// ROWS: Top to bottom, COLS: Left to right
32
33#define MATRIX_ROW_PINS { B4, D5, D0, B2, B3, B0 }
34#define MATRIX_COL_PINS { B1, F0, F1, F4, F5, F6, F7, C7, C6, D3, E6, D7, D6, D4, D2, D1 }
35#define UNUSED_PINS
36
37#define BACKLIGHT_PIN B7
38#define BACKLIGHT_BREATHING
39#ifdef BACKLIGHT_PIN
40#define BACKLIGHT_LEVELS 3
41#endif
42
43/* COL2ROW or ROW2COL */
44#define DIODE_DIRECTION COL2ROW
45
46#define LED_CAPS_LOCK_PIN B6
47#define LED_SCROLL_LOCK_PIN B5
48
49/* define if matrix has ghost */
50//#define MATRIX_HAS_GHOST
51
52/* Set 0 if debouncing isn't needed */
53#define DEBOUNCE 5
54
55/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
56#define LOCKING_SUPPORT_ENABLE
57
58/* Locking resynchronize hack */
59#define LOCKING_RESYNC_ENABLE
60
61#define RGB_DI_PIN E2
62#ifdef RGB_DI_PIN
63#define RGBLIGHT_ANIMATIONS
64#define RGBLED_NUM 4
65#define RGBLIGHT_HUE_STEP 8
66#define RGBLIGHT_SAT_STEP 8
67#define RGBLIGHT_VAL_STEP 8
68#endif