aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lattice60/config.h
diff options
context:
space:
mode:
authorEthan Durrant <5387347+emdarcher@users.noreply.github.com>2020-04-03 14:37:31 -0600
committerGitHub <noreply@github.com>2020-04-03 13:37:31 -0700
commit6e8876be39f829b0327f567d673b23be0f4f28c6 (patch)
treeb874ca4bd6723808c88777b9f41839c8135ccf0f /keyboards/lattice60/config.h
parent0bb2924670918271c35088af23089415653bac1b (diff)
downloadqmk_firmware-6e8876be39f829b0327f567d673b23be0f4f28c6.tar.gz
qmk_firmware-6e8876be39f829b0327f567d673b23be0f4f28c6.zip
[Keyboard] Lattice60 (#8603)
* created initial files for the lattice60 * modifying the keymaps and config * keymap edits and docs * modifying docs and added personal keymap * added pic and website to readme * added layout image for default keymap * updating layout pictures * minor formatting edit * file cleanup * trying to prevent errors with usbconfig * removed usbconfig.h * cleaning up comments * switched to use community hhkb layout
Diffstat (limited to 'keyboards/lattice60/config.h')
-rw-r--r--keyboards/lattice60/config.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/keyboards/lattice60/config.h b/keyboards/lattice60/config.h
new file mode 100644
index 000000000..e864eeebb
--- /dev/null
+++ b/keyboards/lattice60/config.h
@@ -0,0 +1,105 @@
1/*
2Copyright 2019 Ethan Durrant (emdarcher)
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x16C0
24#define PRODUCT_ID 0x27DB
25#define DEVICE_VER 0x0001
26#define MANUFACTURER emdarcher
27#define PRODUCT LATTICE60
28#define DESCRIPTION A HHKB layout keyboard using only through-hole components.
29
30/* key matrix size */
31#define MATRIX_ROWS 8
32#define MATRIX_COLS 8
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { B2, B3, B4, B5, C0, C1, C2, C3 }
45#define MATRIX_COL_PINS { D7, D6, B0, D5, D1, D4, D0, B1 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION ROW2COL
50
51/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
52#define DEBOUNCE 5
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
60 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
61 */
62// #define GRAVE_ESC_CTRL_OVERRIDE
63
64/*
65 * Force NKRO
66 *
67 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
68 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
69 * makefile for this to work.)
70 *
71 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
72 * until the next keyboard reset.
73 *
74 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
75 * fully operational during normal computer usage.
76 *
77 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
78 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
79 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
80 * power-up.
81 *
82 */
83//#define FORCE_NKRO
84
85/*
86 * Feature disable options
87 * These options are also useful to firmware size reduction.
88 */
89
90/* disable debug print */
91//#define NO_DEBUG
92
93/* disable print */
94//#define NO_PRINT
95
96/* disable action features */
97//#define NO_ACTION_LAYER
98//#define NO_ACTION_TAPPING
99//#define NO_ACTION_ONESHOT
100
101/* disable these deprecated features by default */
102#ifndef LINK_TIME_OPTIMIZATION_ENABLE
103 #define NO_ACTION_MACRO
104 #define NO_ACTION_FUNCTION
105#endif