f77: Add jackhill's layout
[jackhill/qmk/firmware.git] / keyboards / preonic / config.h
CommitLineData
04885a3b
JH
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
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#ifndef CONFIG_H
19#define CONFIG_H
20
ac072978 21#include "config_common.h"
04885a3b
JH
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
ac072978 25#define PRODUCT_ID 0x6061
074b7870 26#define MANUFACTURER OLKB
ec3e065f 27#define PRODUCT Preonic
04885a3b
JH
28#define DESCRIPTION A compact ortholinear keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 12
33
34/* Planck PCB default pin-out */
aaa758f1
ET
35#define MATRIX_ROW_PINS { D2, D5, B5, B6, D3 }
36#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
37#define UNUSED_PINS
ac072978 38
ec3e065f
JH
39#define QMK_ESC_OUTPUT F1
40#define QMK_ESC_INPUT B5
41#define QMK_LED E6
42#define QMK_SPEAKER C6
43
438a5d68 44#define AUDIO_VOICES
ea7590c8 45#define C6_AUDIO
438a5d68 46
13bb6b4b
JH
47#define BACKLIGHT_PIN B7
48
ac072978
JH
49/* COL2ROW or ROW2COL */
50#define DIODE_DIRECTION COL2ROW
04885a3b
JH
51
52/* define if matrix has ghost */
53//#define MATRIX_HAS_GHOST
54
55/* number of backlight levels */
56#define BACKLIGHT_LEVELS 3
57
58/* Set 0 if debouncing isn't needed */
faaaa134 59#define DEBOUNCE 5
04885a3b
JH
60
61/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62#define LOCKING_SUPPORT_ENABLE
63/* Locking resynchronize hack */
64#define LOCKING_RESYNC_ENABLE
65
04885a3b
JH
66/*
67 * Feature disable options
68 * These options are also useful to firmware size reduction.
69 */
70
71/* disable debug print */
8bbd064c 72// #define NO_DEBUG
04885a3b
JH
73
74/* disable print */
8bbd064c 75// #define NO_PRINT
04885a3b
JH
76
77/* disable action features */
78//#define NO_ACTION_LAYER
79//#define NO_ACTION_TAPPING
80//#define NO_ACTION_ONESHOT
81//#define NO_ACTION_MACRO
82//#define NO_ACTION_FUNCTION
83
84#endif