Software backlight improvements (#7255)
[jackhill/qmk/firmware.git] / keyboards / daisy / config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 #include "config_common.h"
5
6 /* USB Device descriptor parameter */
7 #define VENDOR_ID 0x1209
8 #define PRODUCT_ID 0x2328
9 #define DEVICE_VER 0x501
10 #define MANUFACTURER K.T.E.C.
11 #define PRODUCT Daisy
12 #define DESCRIPTION qmk port for Daisy
13
14 /* key matrix size */
15 #define MATRIX_ROWS 4
16 #define MATRIX_COLS 11
17
18 /*
19 * Keyboard Matrix Assignments
20 *
21 * Change this to how you wired your keyboard
22 * COLS: AVR pins used for columns, left to right
23 * ROWS: AVR pins used for rows, top to bottom
24 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
25 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
26 *
27 */
28 #define MATRIX_ROW_PINS { D2, D3, D5, B7 }
29 #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, B6, B5, B4, D7, D6 }
30 #define UNUSED_PINS
31
32 /* COL2ROW, ROW2COL*/
33 #define DIODE_DIRECTION COL2ROW
34
35 #define BACKLIGHT_PIN D0
36 #define BACKLIGHT_LEVELS 6
37
38 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
39 #define DEBOUNCE 5
40
41 /* define if matrix has ghost (lacks anti-ghosting diodes) */
42 //#define MATRIX_HAS_GHOST
43
44 /* number of backlight levels */
45
46 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47 #define LOCKING_SUPPORT_ENABLE
48 /* Locking resynchronize hack */
49 #define LOCKING_RESYNC_ENABLE
50
51 /*
52 * Force NKRO
53 *
54 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
55 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
56 * makefile for this to work.)
57 *
58 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
59 * until the next keyboard reset.
60 *
61 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
62 * fully operational during normal computer usage.
63 *
64 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
65 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
66 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
67 * power-up.
68 *
69 */
70 //#define FORCE_NKRO
71
72 /*
73 * Magic Key Options
74 *
75 * Magic keys are hotkey commands that allow control over firmware functions of
76 * the keyboard. They are best used in combination with the HID Listen program,
77 * found here: https://www.pjrc.com/teensy/hid_listen.html
78 *
79 * The options below allow the magic key functionality to be changed. This is
80 * useful if your keyboard/keypad is missing keys and you want magic key support.
81 *
82 */
83
84 /* control how magic key switches layers */
85 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
86 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
87 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
88
89 /* override magic key keymap */
90 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
91 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
92 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
93 //#define MAGIC_KEY_HELP1 H
94 //#define MAGIC_KEY_HELP2 SLASH
95 //#define MAGIC_KEY_DEBUG D
96 //#define MAGIC_KEY_DEBUG_MATRIX X
97 //#define MAGIC_KEY_DEBUG_KBD K
98 //#define MAGIC_KEY_DEBUG_MOUSE M
99 //#define MAGIC_KEY_VERSION V
100 //#define MAGIC_KEY_STATUS S
101 //#define MAGIC_KEY_CONSOLE C
102 //#define MAGIC_KEY_LAYER0_ALT1 ESC
103 //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
104 //#define MAGIC_KEY_LAYER0 0
105 //#define MAGIC_KEY_LAYER1 1
106 //#define MAGIC_KEY_LAYER2 2
107 //#define MAGIC_KEY_LAYER3 3
108 //#define MAGIC_KEY_LAYER4 4
109 //#define MAGIC_KEY_LAYER5 5
110 //#define MAGIC_KEY_LAYER6 6
111 //#define MAGIC_KEY_LAYER7 7
112 //#define MAGIC_KEY_LAYER8 8
113 //#define MAGIC_KEY_LAYER9 9
114 //#define MAGIC_KEY_BOOTLOADER PAUSE
115 //#define MAGIC_KEY_LOCK CAPS
116 //#define MAGIC_KEY_EEPROM E
117 //#define MAGIC_KEY_NKRO N
118 //#define MAGIC_KEY_SLEEP_LED Z
119
120 /*
121 * Feature disable options
122 * These options are also useful to firmware size reduction.
123 */
124
125 /* disable debug print */
126 //#define NO_DEBUG
127
128 /* disable print */
129 //#define NO_PRINT
130
131 /* disable action features */
132 //#define NO_ACTION_LAYER
133 //#define NO_ACTION_TAPPING
134 //#define NO_ACTION_ONESHOT
135 //#define NO_ACTION_MACRO
136 //#define NO_ACTION_FUNCTION
137
138 // ws2812 options
139 #define RGB_DI_PIN C7 // pin the DI on the ws2812 is hooked-up to
140 #define RGBLIGHT_ANIMATIONS // run RGB animations
141 #define RGBLED_NUM 8 // number of LEDs
142 #define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
143 #define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation
144 #define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)
145
146 /*
147 * MIDI options
148 */
149
150 /* Prevent use of disabled MIDI features in the keymap */
151 //#define MIDI_ENABLE_STRICT 1
152
153 /* enable basic MIDI features:
154 - MIDI notes can be sent when in Music mode is on
155 */
156 //#define MIDI_BASIC
157
158 /* enable advanced MIDI features:
159 - MIDI notes can be added to the keymap
160 - Octave shift and transpose
161 - Virtual sustain, portamento, and modulation wheel
162 - etc.
163 */
164 //#define MIDI_ADVANCED
165
166 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
167 //#define MIDI_TONE_KEYCODE_OCTAVES 1
168
169 #endif