aboutsummaryrefslogtreecommitdiff
path: root/keyboards/4pplet/eagle_viper_rep/rev_a/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/4pplet/eagle_viper_rep/rev_a/config.h')
-rw-r--r--keyboards/4pplet/eagle_viper_rep/rev_a/config.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/config.h b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h
new file mode 100644
index 000000000..4edb4754e
--- /dev/null
+++ b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h
@@ -0,0 +1,72 @@
1/*
2Copyright 2021 Stefan Sundin "4pplet" <[email protected]>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#pragma once
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0x4444
21#define PRODUCT_ID 0x0007
22#define DEVICE_VER 0x0001
23#define MANUFACTURER 4pplet
24#define PRODUCT Eagle Viper REP Rev A
25
26#define MATRIX_ROWS 10
27#define MATRIX_COLS 7
28
29#define MATRIX_COL_PINS { A0, B1, B0, A4, B5, B4, B3 }
30#define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
31#define DIODE_DIRECTION COL2ROW
32
33/* In switch leds */
34#define BACKLIGHT_PIN A3
35#define BACKLIGHT_PWM_DRIVER PWMD2
36#define BACKLIGHT_PWM_CHANNEL 4
37#define BACKLIGHT_PAL_MODE 2
38#define BACKLIGHT_ON_STATE 1
39#define BACKLIGHT_LEVELS 10
40#define BACKLIGHT_BREATHING TRUE
41
42/* Underglow */
43#define RGB_DI_PIN A7
44#define WS2812_SPI SPID1
45#define WS2812_SPI_MOSI_PAL_MODE 0
46#define WS2812_SPI_SCK_PIN A5
47#define WS2812_SPI_SCK_PAL_MODE 0
48#define RGBLED_NUM 16
49#define RGBLIGHT_ANIMATIONS
50
51/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
52#define LOCKING_SUPPORT_ENABLE
53/* Locking resynchronize hack */
54#define LOCKING_RESYNC_ENABLE
55
56/* Indicator leds */
57#define LOCK_LIGHTS TRUE
58#define DISPLAY_LAYERS TRUE
59#define CAPS_PIN B2
60#define NUM_PIN B12
61#define SCROLL_PIN B13
62#define LAYER_1 B14
63#define LAYER_2 B15
64#define LAYER_3 A8
65#define LAYER_4 A9
66#define LAYER_5 B9
67
68/* Set 0 if debouncing isn't needed */
69#define DEBOUNCE 5
70
71/* Added extra layer for use of layer leds */
72#define DYNAMIC_KEYMAP_LAYER_COUNT 5