2 Copyright 2019 COSEYFANNITUTTI
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.
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.
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/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0xFEED
24 #define PRODUCT_ID 0x6666
25 #define DEVICE_VER 0x0001
26 #define MANUFACTURER coseyfannitutti
27 #define PRODUCT mulletpad
28 #define DESCRIPTION numpad
35 * Keyboard Matrix Assignments
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)
44 #define MATRIX_ROW_PINS { F4, F1, F5, F6, F7 }
45 #define MATRIX_COL_PINS { F0, C7, C6, B6, }
48 /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
49 #define DIODE_DIRECTION COL2ROW
51 // #define BACKLIGHT_PIN B7
52 // #define BACKLIGHT_BREATHING
53 // #define BACKLIGHT_LEVELS 3
55 //#define RGB_DI_PIN D5
57 //#define RGBLIGHT_ANIMATIONS
58 //#define RGBLED_NUM 8
59 //#define RGBLIGHT_HUE_STEP 8
60 //#define RGBLIGHT_SAT_STEP 8
61 //#define RGBLIGHT_VAL_STEP 8
62 //#define RGBLIGHT_SLEEP
65 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
68 /* define if matrix has ghost (lacks anti-ghosting diodes) */
69 //#define MATRIX_HAS_GHOST
71 /* number of backlight levels */
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
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).
81 // #define GRAVE_ESC_CTRL_OVERRIDE
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.)
90 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
91 * until the next keyboard reset.
93 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
94 * fully operational during normal computer usage.
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
105 * Feature disable options
106 * These options are also useful to firmware size reduction.
109 /* disable debug print */
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
126 /* Prevent use of disabled MIDI features in the keymap */
127 //#define MIDI_ENABLE_STRICT 1
129 /* enable basic MIDI features:
130 - MIDI notes can be sent when in Music mode is on
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
140 //#define MIDI_ADVANCED
142 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
143 //#define MIDI_TONE_KEYCODE_OCTAVES 1
146 * HD44780 LCD Display Configuration
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
152 #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port 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