summaryrefslogtreecommitdiffstats
path: root/keyboards/avalanche/v2/config.h
diff options
context:
space:
mode:
authorWill Winder <wwinder.unh@gmail.com>2022-04-14 14:23:32 -0400
committerGitHub <noreply@github.com>2022-04-14 11:23:32 -0700
commit8de4065b099a99bcffe436a038616b0c31ade7c3 (patch)
treef37c12e155295a04309c1dbce94ff7c6a52f76a7 /keyboards/avalanche/v2/config.h
parentb9e11253c4d0646176e6455390c917a784ea33c9 (diff)
[Keyboard] Add avalanche (#16407)
* [Keyboard] Add avalanche * PR feedback * Update keyboards/avalanche/v1/config.h * Update keyboards/avalanche/v1/v1.h * Update keyboards/avalanche/v2/config.h * Update keyboards/avalanche/v2/v2.h * Update keyboards/avalanche/v3/config.h * Update keyboards/avalanche/v3/v3.h * Apply suggestions from code review * Remove rules.mk comment and fix other comments. * Shared encoder code, follow conventions in rules.mk files. * Remove config files which do not change defaul behavior.
Diffstat (limited to 'keyboards/avalanche/v2/config.h')
-rw-r--r--keyboards/avalanche/v2/config.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/avalanche/v2/config.h b/keyboards/avalanche/v2/config.h
new file mode 100644
index 0000000000..55cbd30b1c
--- /dev/null
+++ b/keyboards/avalanche/v2/config.h
@@ -0,0 +1,30 @@
+// Copyright 2022 Vitaly Volkov (@vlkv)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#define VENDOR_ID 0xCEE2
+#define PRODUCT_ID 0x0002
+#define DEVICE_VER 0x0002
+#define MANUFACTURER vitvlkv
+#define PRODUCT Avalanche
+
+#define MATRIX_ROWS 10
+#define MATRIX_COLS 7
+
+#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
+#define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
+
+#define DIODE_DIRECTION COL2ROW
+
+#define SOFT_SERIAL_PIN D2
+
+#define RGB_DI_PIN D3
+
+#define RGBLED_NUM 12
+#define RGBLED_SPLIT { 6, 6 }
+#define RGBLIGHT_SPLIT
+
+#define ENCODERS_PAD_A { B5 }
+#define ENCODERS_PAD_B { F4 }
+#define ENCODER_RESOLUTION 2