]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/coseyfannitutti/mullet/config.h
527294e51ad21692001e453cd0a8a3c501f6f2ba
[qmk_firmware.git] / keyboards / coseyfannitutti / mullet / config.h
1 /*
2 Copyright 2019 COSEYFANNITUTTI
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along 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       0xFEED
24 #define PRODUCT_ID      0x6969
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    coseyfannitutti
27 #define PRODUCT         mullet
28 #define DESCRIPTION     65% keyboard
29
30 /* key matrix size */
31 #define MATRIX_ROWS 5
32 #define MATRIX_COLS 15
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 { D0, D1, B0, F0, F1 }
45 #define MATRIX_COL_PINS { B2, F4, F5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4, D2, D3 }
46 #define UNUSED_PINS
47
48 /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
49 #define DIODE_DIRECTION COL2ROW
50
51 // #define BACKLIGHT_PIN B7
52 // #define BACKLIGHT_BREATHING
53 // #define BACKLIGHT_LEVELS 3
54
55 #define RGB_DI_PIN D5
56 #ifdef RGB_DI_PIN
57 #define RGBLIGHT_ANIMATIONS
58 #define RGBLED_NUM 14
59 #define RGBLIGHT_HUE_STEP 8
60 #define RGBLIGHT_SAT_STEP 8
61 #define RGBLIGHT_VAL_STEP 8
62 #define RGBLIGHT_SLEEP
63 #endif
64
65 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
66 #define DEBOUNCING_DELAY 5
67
68 /* define if matrix has ghost (lacks anti-ghosting diodes) */
69 //#define MATRIX_HAS_GHOST
70
71 /* number of backlight levels */
72
73 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
74 //#define LOCKING_SUPPORT_ENABLE
75 /* Locking resynchronize hack */
76 //#define LOCKING_RESYNC_ENABLE
77
78 /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
79  * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
80  */
81 // #define GRAVE_ESC_CTRL_OVERRIDE
82
83 /*
84  * Force NKRO
85  *
86  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
87  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
88  * makefile for this to work.)
89  *
90  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
91  * until the next keyboard reset.
92  *
93  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
94  * fully operational during normal computer usage.
95  *
96  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
97  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
98  * bootmagic, NKRO mode will always be enabled until it is toggled again during a
99  * power-up.
100  *
101  */
102 //#define FORCE_NKRO
103
104 /*
105  * Feature disable options
106  *  These options are also useful to firmware size reduction.
107  */
108
109 /* disable debug print */
110 //#define NO_DEBUG
111
112 /* disable print */
113 //#define NO_PRINT
114
115 /* disable action features */
116 //#define NO_ACTION_LAYER
117 //#define NO_ACTION_TAPPING
118 //#define NO_ACTION_ONESHOT
119 //#define NO_ACTION_MACRO
120 //#define NO_ACTION_FUNCTION
121
122 /*
123  * MIDI options
124  */
125
126 /* Prevent use of disabled MIDI features in the keymap */
127 //#define MIDI_ENABLE_STRICT 1
128
129 /* enable basic MIDI features:
130    - MIDI notes can be sent when in Music mode is on
131 */
132 //#define MIDI_BASIC
133
134 /* enable advanced MIDI features:
135    - MIDI notes can be added to the keymap
136    - Octave shift and transpose
137    - Virtual sustain, portamento, and modulation wheel
138    - etc.
139 */
140 //#define MIDI_ADVANCED
141
142 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
143 //#define MIDI_TONE_KEYCODE_OCTAVES 1
144
145 /*
146  * HD44780 LCD Display Configuration
147  */
148 /*
149 #define LCD_LINES           2     //< number of visible lines of the display
150 #define LCD_DISP_LENGTH    16     //< visibles characters per line of the display
151
152 #define LCD_IO_MODE      1            //< 0: memory mapped mode, 1: IO port mode
153
154 #if LCD_IO_MODE
155 #define LCD_PORT         PORTB        //< port for the LCD lines
156 #define LCD_DATA0_PORT   LCD_PORT     //< port for 4bit data bit 0
157 #define LCD_DATA1_PORT   LCD_PORT     //< port for 4bit data bit 1
158 #define LCD_DATA2_PORT   LCD_PORT     //< port for 4bit data bit 2
159 #define LCD_DATA3_PORT   LCD_PORT     //< port for 4bit data bit 3
160 #define LCD_DATA0_PIN    4            //< pin for 4bit data bit 0
161 #define LCD_DATA1_PIN    5            //< pin for 4bit data bit 1
162 #define LCD_DATA2_PIN    6            //< pin for 4bit data bit 2
163 #define LCD_DATA3_PIN    7            //< pin for 4bit data bit 3
164 #define LCD_RS_PORT      LCD_PORT     //< port for RS line
165 #define LCD_RS_PIN       3            //< pin  for RS line
166 #define LCD_RW_PORT      LCD_PORT     //< port for RW line
167 #define LCD_RW_PIN       2            //< pin  for RW line
168 #define LCD_E_PORT       LCD_PORT     //< port for Enable line
169 #define LCD_E_PIN        1            //< pin  for Enable line
170 #endif
171 */
172