aboutsummaryrefslogtreecommitdiff
path: root/keyboards/tkc/candybar/lefty_r3/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/tkc/candybar/lefty_r3/config.h')
-rw-r--r--keyboards/tkc/candybar/lefty_r3/config.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/keyboards/tkc/candybar/lefty_r3/config.h b/keyboards/tkc/candybar/lefty_r3/config.h
new file mode 100644
index 000000000..d7a490843
--- /dev/null
+++ b/keyboards/tkc/candybar/lefty_r3/config.h
@@ -0,0 +1,91 @@
1/* Copyright 2021 Terry Mathews
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
17#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x544B //TK
23#define PRODUCT_ID 0x0003
24#define DEVICE_VER 0x0006
25#define MANUFACTURER The Key Company
26#define PRODUCT Candybar
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 17
31#define DIODE_DIRECTION COL2ROW
32#define MATRIX_ROW_PINS { F1, F0, D0, D2 }
33#define MATRIX_COL_PINS { B5, B6, C6, C7, F7, F6, F5, F4, D5, B3, B0, B1, B2, D4, D6, D7, B4 }
34
35
36/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
37#define DEBOUNCE 5
38
39/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
40//#define LOCKING_SUPPORT_ENABLE
41/* Locking resynchronize hack */
42//#define LOCKING_RESYNC_ENABLE
43
44/*
45 * Force NKRO
46 *
47 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
48 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
49 * makefile for this to work.)
50 *
51 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
52 * until the next keyboard reset.
53 *
54 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
55 * fully operational during normal computer usage.
56 *
57 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
58 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
59 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
60 * power-up.
61 *
62 */
63//#define FORCE_NKRO
64
65/*
66 * Feature disable options
67 * These options are also useful to firmware size reduction.
68 */
69
70/* disable debug print */
71//#define NO_DEBUG
72
73/* disable print */
74//#define NO_PRINT
75
76/* disable action features */
77//#define NO_ACTION_LAYER
78//#define NO_ACTION_TAPPING
79//#define NO_ACTION_ONESHOT
80//#define NO_ACTION_MACRO
81//#define NO_ACTION_FUNCTION
82
83// #define WS2812_LED_N 2
84// #define RGBLED_NUM WS2812_LED_N
85// #define WS2812_TIM_N 2
86// #define WS2812_TIM_CH 2
87// #define PORT_WS2812 GPIOA
88// #define PIN_WS2812 1
89// #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
90//#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
91//#define WS2812_EXTERNAL_PULLUP