aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/aos/tkl/config.h
diff options
context:
space:
mode:
authorGravatar Rys Sommefeldt <rys@sommefeldt.com>2020-05-21 20:49:35 +0100
committerGravatar GitHub <noreply@github.com>2020-05-21 12:49:35 -0700
commit5246acb2e4c188198d503856a493b66174486db8 (patch)
treeb9bd162c5f7047d878aac815807ecca42b139150 /keyboards/aos/tkl/config.h
parent02a8c874f885241306a62e8f43d6ed1f0ef1d3ac (diff)
downloadqmk_firmware-5246acb2e4c188198d503856a493b66174486db8.tar.gz
[Keyboard] Add support for Ace of Spades TKL keyboard (#9128)
* Add support for Ace of Spades * Fix the F-row mappings * Add the tkl_iso layout * Put KC_PAUS back in place of top layer reset * aholland909 personal keymap for Ace of Spades * Address PR feedback and rename to aos/tkl * Rename keyboard implementation filenames * Remove unnecessary layers * info.json for the configurator
Diffstat (limited to 'keyboards/aos/tkl/config.h')
-rw-r--r--keyboards/aos/tkl/config.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/keyboards/aos/tkl/config.h b/keyboards/aos/tkl/config.h
new file mode 100644
index 000000000..4e6ab3e3d
--- /dev/null
+++ b/keyboards/aos/tkl/config.h
@@ -0,0 +1,56 @@
+/*
+Copyright 2020 aholland909
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x504B
+#define PRODUCT_ID 0x1000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Ace of Spades
+#define PRODUCT Ace of Spades TKL
+#define DESCRIPTION Ace of Spades TKL
+
+/* key matrix size */
+#define MATRIX_ROWS 6
+#define MATRIX_COLS 17
+
+#define MATRIX_ROW_PINS { D3, D2, B7, F1, C7, D5 }
+#define MATRIX_COL_PINS { B0, B1, B2, B3, F4, F5, F6, F7, B6, B5, D7, B4, D6, F0, D1, C6, D4 }
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+
+#define RGB_DI_PIN E6
+#ifdef RGB_DI_PIN
+ #define RGBLIGHT_ANIMATIONS
+ #define RGBLED_NUM 88
+ #define RGBLIGHT_HUE_STEP 8
+ #define RGBLIGHT_SAT_STEP 8
+ #define RGBLIGHT_VAL_STEP 8
+#endif