aboutsummaryrefslogtreecommitdiff
path: root/keyboards/40percentclub/foobar/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/40percentclub/foobar/config.h')
-rw-r--r--keyboards/40percentclub/foobar/config.h128
1 files changed, 128 insertions, 0 deletions
diff --git a/keyboards/40percentclub/foobar/config.h b/keyboards/40percentclub/foobar/config.h
new file mode 100644
index 000000000..a65b6e51b
--- /dev/null
+++ b/keyboards/40percentclub/foobar/config.h
@@ -0,0 +1,128 @@
1/* Copyright 2018
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 0x4025
23#define PRODUCT_ID 0x0A0C
24#define DEVICE_VER 0x0F00
25#define MANUFACTURER di0ib
26#define PRODUCT The foobar Keyboard
27
28#define USE_SERIAL
29
30/* serial.c configuration for split keyboard */
31#define SOFT_SERIAL_PIN D0
32
33/* Select hand configuration */
34#define MASTER_LEFT
35//#define MASTER_RIGHT
36//#define EE_HANDS
37
38/* key matrix size */
39// Rows are doubled-up
40#define MATRIX_ROWS 3*2
41#define MATRIX_COLS 5
42
43/*
44 * Keyboard Matrix Assignments
45 *
46 * Change this to how you wired your keyboard
47 * COLS: AVR pins used for columns, left to right
48 * ROWS: AVR pins used for rows, top to bottom
49 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
50 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
51 *
52*/
53#define MATRIX_ROW_PINS { D7, E6, B4 }
54#define MATRIX_COL_PINS { F6, F7, B1, B3, B2 }
55#define UNUSED_PINS
56
57/* COL2ROW, ROW2COL*/
58#define DIODE_DIRECTION COL2ROW
59
60// #define BACKLIGHT_PIN B7
61// #define BACKLIGHT_BREATHING
62// #define BACKLIGHT_LEVELS 3
63
64// #define RGB_DI_PIN E2
65// #ifdef RGB_DI_PIN
66// #define RGBLIGHT_ANIMATIONS
67// #define RGBLED_NUM 16
68// #define RGBLIGHT_HUE_STEP 8
69// #define RGBLIGHT_SAT_STEP 8
70// #define RGBLIGHT_VAL_STEP 8
71// #endif
72
73/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
74#define DEBOUNCE 5
75
76/* define if matrix has ghost (lacks anti-ghosting diodes) */
77//#define MATRIX_HAS_GHOST
78
79/* number of backlight levels */
80
81/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
82#define LOCKING_SUPPORT_ENABLE
83/* Locking resynchronize hack */
84#define LOCKING_RESYNC_ENABLE
85
86/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
87 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
88 */
89// #define GRAVE_ESC_CTRL_OVERRIDE
90
91/*
92 * Force NKRO
93 *
94 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
95 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
96 * makefile for this to work.)
97 *
98 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
99 * until the next keyboard reset.
100 *
101 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
102 * fully operational during normal computer usage.
103 *
104 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
105 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
106 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
107 * power-up.
108 *
109 */
110//#define FORCE_NKRO
111
112/*
113 * Feature disable options
114 * These options are also useful to firmware size reduction.
115 */
116
117/* disable debug print */
118//#define NO_DEBUG
119
120/* disable print */
121//#define NO_PRINT
122
123/* disable action features */
124//#define NO_ACTION_LAYER
125//#define NO_ACTION_TAPPING
126//#define NO_ACTION_ONESHOT
127//#define NO_ACTION_MACRO
128//#define NO_ACTION_FUNCTION