aboutsummaryrefslogtreecommitdiff
path: root/keyboards/al1/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/al1/config.h')
-rw-r--r--keyboards/al1/config.h112
1 files changed, 12 insertions, 100 deletions
diff --git a/keyboards/al1/config.h b/keyboards/al1/config.h
index 6f6157c2d..b003a9cd6 100644
--- a/keyboards/al1/config.h
+++ b/keyboards/al1/config.h
@@ -15,62 +15,42 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef CONFIG_H 18#pragma once
19#define CONFIG_H
20 19
21#include "config_common.h" 20#include "config_common.h"
22 21
23/* USB Device descriptor parameter */ 22/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED 23#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x6050 24#define PRODUCT_ID 0x6050
26#define DEVICE_VER 0x0104 25#define DEVICE_VER 0x0104
27#define MANUFACTURER Alsoran 26#define MANUFACTURER Alsoran
28#define PRODUCT AL1 27#define PRODUCT AL1
29 28
30/* key matrix size */ 29/* key matrix size */
31#define MATRIX_ROWS 7 30#define MATRIX_ROWS 7
32#define MATRIX_COLS 20 31#define MATRIX_COLS 20
33 32
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
45/* COL2ROW, ROW2COL*/
46#define DIODE_DIRECTION COL2ROW
47
48#define LED_NUM_LOCK_PIN D0 33#define LED_NUM_LOCK_PIN D0
49#define LED_CAPS_LOCK_PIN B7 34#define LED_CAPS_LOCK_PIN B7
50#define LED_SCROLL_LOCK_PIN D1 35#define LED_SCROLL_LOCK_PIN D1
51#define LED_PIN_ON_STATE 0 36#define LED_PIN_ON_STATE 0
52 37
53#define BACKLIGHT_PIN B6 38#define BACKLIGHT_PIN B6
54#define BACKLIGHT_BREATHING
55#define BACKLIGHT_LEVELS 3 39#define BACKLIGHT_LEVELS 3
40#define BACKLIGHT_BREATHING
56 41
57/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 42/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
58#define DEBOUNCE 5 43#define DEBOUNCE 5
59 44
60/* define if matrix has ghost (lacks anti-ghosting diodes) */
61//#define MATRIX_HAS_GHOST
62
63/* number of backlight levels */
64
65/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 45/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66#define LOCKING_SUPPORT_ENABLE 46#define LOCKING_SUPPORT_ENABLE
67/* Locking resynchronize hack */ 47/* Locking resynchronize hack */
68#define LOCKING_RESYNC_ENABLE 48#define LOCKING_RESYNC_ENABLE
69 49
70/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. 50/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
71 * This is userful for the Windows task manager shortcut (ctrl+shift+esc). 51 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
72 */ 52 */
73// #define GRAVE_ESC_CTRL_OVERRIDE 53//#define GRAVE_ESC_CTRL_OVERRIDE
74 54
75/* 55/*
76 * Force NKRO 56 * Force NKRO
@@ -94,54 +74,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
94//#define FORCE_NKRO 74//#define FORCE_NKRO
95 75
96/* 76/*
97 * Magic Key Options
98 *
99 * Magic keys are hotkey commands that allow control over firmware functions of
100 * the keyboard. They are best used in combination with the HID Listen program,
101 * found here: https://www.pjrc.com/teensy/hid_listen.html
102 *
103 * The options below allow the magic key functionality to be changed. This is
104 * useful if your keyboard/keypad is missing keys and you want magic key support.
105 *
106 */
107
108/* control how magic key switches layers */
109//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
110//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
111//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
112
113/* override magic key keymap */
114//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
115//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
116//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
117//#define MAGIC_KEY_HELP1 H
118//#define MAGIC_KEY_HELP2 SLASH
119//#define MAGIC_KEY_DEBUG D
120//#define MAGIC_KEY_DEBUG_MATRIX X
121//#define MAGIC_KEY_DEBUG_KBD K
122//#define MAGIC_KEY_DEBUG_MOUSE M
123//#define MAGIC_KEY_VERSION V
124//#define MAGIC_KEY_STATUS S
125//#define MAGIC_KEY_CONSOLE C
126//#define MAGIC_KEY_LAYER0_ALT1 ESC
127//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
128//#define MAGIC_KEY_LAYER0 0
129//#define MAGIC_KEY_LAYER1 1
130//#define MAGIC_KEY_LAYER2 2
131//#define MAGIC_KEY_LAYER3 3
132//#define MAGIC_KEY_LAYER4 4
133//#define MAGIC_KEY_LAYER5 5
134//#define MAGIC_KEY_LAYER6 6
135//#define MAGIC_KEY_LAYER7 7
136//#define MAGIC_KEY_LAYER8 8
137//#define MAGIC_KEY_LAYER9 9
138//#define MAGIC_KEY_BOOTLOADER PAUSE
139//#define MAGIC_KEY_LOCK CAPS
140//#define MAGIC_KEY_EEPROM E
141//#define MAGIC_KEY_NKRO N
142//#define MAGIC_KEY_SLEEP_LED Z
143
144/*
145 * Feature disable options 77 * Feature disable options
146 * These options are also useful to firmware size reduction. 78 * These options are also useful to firmware size reduction.
147 */ 79 */
@@ -156,27 +88,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
156//#define NO_ACTION_LAYER 88//#define NO_ACTION_LAYER
157//#define NO_ACTION_TAPPING 89//#define NO_ACTION_TAPPING
158//#define NO_ACTION_ONESHOT 90//#define NO_ACTION_ONESHOT
159//#define NO_ACTION_MACRO
160//#define NO_ACTION_FUNCTION
161
162/*
163 * MIDI options
164 */
165
166/* enable basic MIDI features:
167 - MIDI notes can be sent when in Music mode is on
168*/
169//#define MIDI_BASIC
170
171/* enable advanced MIDI features:
172 - MIDI notes can be added to the keymap
173 - Octave shift and transpose
174 - Virtual sustain, portamento, and modulation wheel
175 - etc.
176*/
177//#define MIDI_ADVANCED
178
179/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
180//#define MIDI_TONE_KEYCODE_OCTAVES 1
181 91
182#endif 92/* disable these deprecated features by default */
93#define NO_ACTION_MACRO
94#define NO_ACTION_FUNCTION