aboutsummaryrefslogtreecommitdiff
path: root/keyboards/swiftrax/retropad/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/swiftrax/retropad/config.h')
-rw-r--r--keyboards/swiftrax/retropad/config.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/swiftrax/retropad/config.h b/keyboards/swiftrax/retropad/config.h
new file mode 100644
index 000000000..e604eda41
--- /dev/null
+++ b/keyboards/swiftrax/retropad/config.h
@@ -0,0 +1,64 @@
1/*
2Copyright 2020 Swiftrax <swiftrax@gmail.com>
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
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x04D8
24#define PRODUCT_ID 0xEB0C
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Swiftrax
27#define PRODUCT Retropad
28
29/* key matrix size */
30#define MATRIX_ROWS 3
31#define MATRIX_COLS 2
32
33// ROWS: Top to bottom, COLS: Left to right
34
35#define MATRIX_ROW_PINS { C7, C6, B5 }
36#define MATRIX_COL_PINS { B4, D2 }
37
38#define ENCODERS_PAD_A { D0 }
39#define ENCODERS_PAD_B { D1 }
40
41/* COL2ROW or ROW2COL */
42#define DIODE_DIRECTION COL2ROW
43
44#define RGB_DI_PIN B7
45#ifdef RGB_DI_PIN
46#define RGBLIGHT_ANIMATIONS
47#define RGBLED_NUM 6
48#define RGBLIGHT_HUE_STEP 8
49#define RGBLIGHT_SAT_STEP 8
50#define RGBLIGHT_VAL_STEP 8
51#endif
52
53/* define if matrix has ghost */
54//#define MATRIX_HAS_GHOST
55
56/* Set 0 if debouncing isn't needed */
57#define DEBOUNCE 5
58
59/*EEPROM for via*/
60#define DYNAMIC_KEYMAP_LAYER_COUNT 3
61
62/* bootmagic row col assignment */
63#define BOOTMAGIC_LITE_ROW 1
64#define BOOTMAGIC_LITE_COLUMN 0