summaryrefslogtreecommitdiffstats
path: root/keyboards/cannonkeys/gentoo/config.h
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@gmail.com>2022-07-02 18:17:53 -0400
committerGitHub <noreply@github.com>2022-07-02 23:17:53 +0100
commit2011aec06f17fd9c80aba740cca82ec5b85759cc (patch)
treebbbd89cdb7820566e89d04cc42123ba00d445a69 /keyboards/cannonkeys/gentoo/config.h
parentbb1edf6676c969f2cb641924fd8c777a7378e2ad (diff)
Add Gentoo Solderable PCB to QMK (#17527)
Diffstat (limited to 'keyboards/cannonkeys/gentoo/config.h')
-rw-r--r--keyboards/cannonkeys/gentoo/config.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/gentoo/config.h b/keyboards/cannonkeys/gentoo/config.h
new file mode 100644
index 0000000000..ac498debd9
--- /dev/null
+++ b/keyboards/cannonkeys/gentoo/config.h
@@ -0,0 +1,62 @@
+/*
+Copyright 2022 Andrew Kannan <andrew@cannonkeys.com>
+
+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
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xCA04
+#define PRODUCT_ID 0x000F
+#define DEVICE_VER 0x0001
+#define MANUFACTURER CannonKeys
+#define PRODUCT Gentoo
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 15
+
+#define MATRIX_COL_PINS { C13, C15, B13, B12, B11, B10, B2, B1, B0, A7, A6, A5, A4, A3, A2 }
+#define MATRIX_ROW_PINS { C14, A1, B14, B15, A8 }
+#define DIODE_DIRECTION COL2ROW
+
+#define LED_CAPS_LOCK_PIN B3
+#define LED_PIN_ON_STATE 0
+/* define if matrix has ghost */
+//#define MATRIX_HAS_GHOST
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT