aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bastardkb/tbkmini/config.h
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bastardkb/tbkmini/config.h
Diffstat (limited to 'keyboards/bastardkb/tbkmini/config.h')
-rw-r--r--keyboards/bastardkb/tbkmini/config.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/keyboards/bastardkb/tbkmini/config.h b/keyboards/bastardkb/tbkmini/config.h
new file mode 100644
index 000000000..b2308bc8e
--- /dev/null
+++ b/keyboards/bastardkb/tbkmini/config.h
@@ -0,0 +1,106 @@
1/*
2 * Copyright 2021 Quentin LEBASTARD <[email protected]>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19#include "config_common.h"
20#define VENDOR_ID 0xA8F8
21#define PRODUCT_ID 0x1828
22#define DEVICE_VER 0x0001
23#define MANUFACTURER Bastard Keyboards
24#define PRODUCT TBK Mini
25
26#define MATRIX_ROWS 8
27#define MATRIX_COLS 6
28#define RGBLIGHT_LIMIT_VAL 180
29#define MATRIX_ROW_PINS { B5, F7, F6, B6 }
30#define MATRIX_COL_PINS { B4, E6, C6, B1, B3, B2 }
31
32#define DIODE_DIRECTION ROW2COL
33
34#define RGB_DI_PIN D2
35#define RGBLED_NUM 42
36#define RGBLED_SPLIT { 21, 21 }
37#define RGBLIGHT_ANIMATIONS
38
39#define DEBOUNCE 5
40
41#define SOFT_SERIAL_PIN D0
42
43#define LOCKING_SUPPORT_ENABLE
44#define LOCKING_RESYNC_ENABLE
45#define F_SCL 400000L
46#define USB_POLLING_INTERVAL_MS 1
47#define MASTER_RIGHT
48
49// RGB matrix support
50#ifdef RGB_MATRIX_ENABLE
51# define SPLIT_TRANSPORT_MIRROR
52# define DRIVER_LED_TOTAL 42 // Number of LEDs
53# define RGB_MATRIX_SPLIT { 21, 21 }
54# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
55# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
56# define RGB_DISABLE_WHEN_USB_SUSPENDED
57# define RGB_MATRIX_KEYPRESSES
58// RGB Matrix Animation modes. Explicitly enabled
59// For full list of effects, see:
60// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
61# define ENABLE_RGB_MATRIX_ALPHAS_MODS
62# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
63# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
64# define ENABLE_RGB_MATRIX_BREATHING
65# define ENABLE_RGB_MATRIX_BAND_SAT
66# define ENABLE_RGB_MATRIX_BAND_VAL
67# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
68# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
69# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
70# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
71# define ENABLE_RGB_MATRIX_CYCLE_ALL
72# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
73# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
74# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
75# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
76# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
77# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
78# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
79# define ENABLE_RGB_MATRIX_DUAL_BEACON
80# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
81# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
82# define ENABLE_RGB_MATRIX_RAINDROPS
83# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
84# define ENABLE_RGB_MATRIX_HUE_BREATHING
85# define ENABLE_RGB_MATRIX_HUE_PENDULUM
86# define ENABLE_RGB_MATRIX_HUE_WAVE
87# define ENABLE_RGB_MATRIX_PIXEL_RAIN
88# define ENABLE_RGB_MATRIX_PIXEL_FLOW
89# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
90// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
91# define ENABLE_RGB_MATRIX_TYPING_HEATMAP
92# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
93// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
94# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
95# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
96# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
97# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
98# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
99# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
100# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
101# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
102# define ENABLE_RGB_MATRIX_SPLASH
103# define ENABLE_RGB_MATRIX_MULTISPLASH
104# define ENABLE_RGB_MATRIX_SOLID_SPLASH
105# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
106#endif