summaryrefslogtreecommitdiff
path: root/keyboards/ydkb/grape/config.h
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-26 00:46:16 +0000
committerQMK Bot <hello@qmk.fm>2022-03-26 00:46:16 +0000
commit1fabad1cec5b773c86b5516ad52d8989d1b67251 (patch)
tree2944c3345e0c7f2cd8a31135e7cbdceb19a4ce98 /keyboards/ydkb/grape/config.h
parent7cec7b678036d105c9b97cb4e728fdcb986ccb57 (diff)
parent7e0dde1f0009bc47430091736d7893148876b4ec (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/ydkb/grape/config.h')
-rw-r--r--keyboards/ydkb/grape/config.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/keyboards/ydkb/grape/config.h b/keyboards/ydkb/grape/config.h
new file mode 100644
index 0000000000..3396f18d61
--- /dev/null
+++ b/keyboards/ydkb/grape/config.h
@@ -0,0 +1,57 @@
+/* Copyright 2022 somepin
+ *
+ * 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 0x5945 // "YE"
+#define PRODUCT_ID 0x6772 // "GR"
+#define DEVICE_VER 0x0001
+#define MANUFACTURER YDKB
+#define PRODUCT Grape
+
+/* key matrix size */
+#define MATRIX_ROWS 7
+#define MATRIX_COLS 18
+
+#define MATRIX_COL_PINS { F4, F5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, B3, B2, B1, B0 }
+
+#define SN74X138_ADDRESS_PINS { D2, D1, D0 }
+
+#define LED_NUM_LOCK_PIN F1
+#define LED_CAPS_LOCK_PIN F0
+#define LED_SCROLL_LOCK_PIN E6
+#define LED_PIN_ON_STATE 0
+
+#define BACKLIGHT_PIN B7
+#define BACKLIGHT_BREATHING
+#define BACKLIGHT_LEVELS 3
+
+#ifdef RGBLIGHT_ENABLE
+#define RGB_DI_PIN E6
+#define RGBLED_NUM 4
+#endif
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 3