aboutsummaryrefslogtreecommitdiff
path: root/keyboards/geekboards/macropad_v2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/geekboards/macropad_v2/config.h')
-rw-r--r--keyboards/geekboards/macropad_v2/config.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h
new file mode 100644
index 000000000..5f11cdddb
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/config.h
@@ -0,0 +1,78 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "config_common.h"
17
18/* USB Device descriptor parameter */
19#define VENDOR_ID 0x0483
20#define PRODUCT_ID 0xA372
21#define DEVICE_VER 0x0002
22#define MANUFACTURER GeekBoards
23#define PRODUCT Macropad v2
24
25/* key matrix size */
26#define MATRIX_ROWS 2
27#define MATRIX_COLS 4
28
29#define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}}
30#define UNUSED_PINS
31
32#define RGBLED_NUM 42
33#define DRIVER_LED_TOTAL 42
34#define RGB_DI_PIN A7
35
36// PWM RGB Underglow Defines
37#define WS2812_PWM_DRIVER PWMD3
38#define WS2812_PWM_CHANNEL 2
39#define WS2812_PWM_PAL_MODE 1
40#define WS2812_DMA_STREAM STM32_DMA1_STREAM3
41#define WS2812_DMA_CHANNEL 3
42
43#ifdef RGB_MATRIX_ENABLE
44#define RGB_MATRIX_KEYPRESSES
45#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
46#define DISABLE_RGB_MATRIX_ALPHAS_MODS
47#define DISABLE_RGB_MATRIX_BAND_SAT
48#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
49#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
50#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
51#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
52#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
53#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
54#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
55#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
56#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
57#define DISABLE_RGB_MATRIX_RAINDROPS
58#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
59#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
60#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
61#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
62#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
63
64#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN
65#define RGB_MATRIX_STARTUP_SAT 255
66#define RGB_MATRIX_STARTUP_VAL 192
67#define RGB_MATRIX_STARTUP_SPD 30
68#endif //RGB_MATRIX_ENABLE
69
70#define RGB_DISABLE_WHEN_USB_SUSPENDED true
71#define WAIT_FOR_USB
72
73/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
74#define DEBOUNCE 3
75
76/* Bootmagic Lite key configuration */
77#define BOOTMAGIC_LITE_ROW 0
78#define BOOTMAGIC_LITE_COLUMN 0