aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bastardkb/charybdis/3x5/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bastardkb/charybdis/3x5/config.h')
-rw-r--r--keyboards/bastardkb/charybdis/3x5/config.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/keyboards/bastardkb/charybdis/3x5/config.h b/keyboards/bastardkb/charybdis/3x5/config.h
new file mode 100644
index 000000000..9c69f7c35
--- /dev/null
+++ b/keyboards/bastardkb/charybdis/3x5/config.h
@@ -0,0 +1,87 @@
1/*
2 * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com>
3 * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#define VENDOR_ID 0xA8F8
22#define PRODUCT_ID 0x1832
23#define DEVICE_VER 0x0001
24#define MANUFACTURER Bastard Keyboards
25#define PRODUCT Charybdis Nano
26
27/* Key matrix configuration. */
28
29// Rows are doubled-up.
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 5
32
33// Wiring configuration for each half.
34#define MATRIX_ROW_PINS \
35 { B7, C6, D4, B5 }
36#define MATRIX_COL_PINS \
37 { C7, F0, D7, E6, B4 }
38
39#define MATRIX_ROW_PINS_RIGHT \
40 { F0, C6, D4, B5 }
41#define MATRIX_COL_PINS_RIGHT \
42 { C7, B7, D7, E6, B4 }
43
44#define DIODE_DIRECTION ROW2COL
45
46/* Handedness. */
47#define MASTER_RIGHT
48
49/* Bootmagic Lite configuration. */
50#define BOOTMAGIC_LITE_ROW 0
51#define BOOTMAGIC_LITE_COLUMN 0
52#define BOOTMAGIC_LITE_ROW_RIGHT 4
53#define BOOTMAGIC_LITE_COLUMN_RIGHT 0
54
55/* serial.c configuration (for split keyboard) */
56#define SOFT_SERIAL_PIN D2
57
58/* Set 0 if debouncing isn't needed. */
59#define DEBOUNCE 5
60
61/* Disable action features. */
62#define NO_ACTION_MACRO // Disable old-style macro handling.
63#define NO_ACTION_FUNCTION // Disable old-style function handling.
64
65/* PMW3360 settings. */
66#define PMW3360_CS_PIN B0
67
68// Trackball angle adjustment.
69#define ROTATIONAL_TRANSFORM_ANGLE -25
70
71/* RGB settings. */
72
73#define RGB_DI_PIN D3
74#define RGBLED_NUM 35
75#define RGBLED_SPLIT \
76 { 18, 17 }
77
78/* RGB matrix support. */
79#ifdef RGB_MATRIX_ENABLE
80# define SPLIT_TRANSPORT_MIRROR
81# define DRIVER_LED_TOTAL RGBLED_NUM
82# define RGB_MATRIX_SPLIT RGBLED_SPLIT
83# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
84# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
85# define RGB_DISABLE_WHEN_USB_SUSPENDED
86# define RGB_MATRIX_KEYPRESSES
87#endif