diff options
Diffstat (limited to 'keyboards/handwired/woodpad/config.h')
| -rw-r--r-- | keyboards/handwired/woodpad/config.h | 141 |
1 files changed, 52 insertions, 89 deletions
diff --git a/keyboards/handwired/woodpad/config.h b/keyboards/handwired/woodpad/config.h index 72b9fabab..9894fe133 100644 --- a/keyboards/handwired/woodpad/config.h +++ b/keyboards/handwired/woodpad/config.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2017 | 2 | Copyright 2017 WoodKeys |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 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 | 5 | it under the terms of the GNU General Public License as published by |
| @@ -15,17 +15,16 @@ 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/>. | 15 | along 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 0x6069 | 24 | #define PRODUCT_ID 0x6069 |
| 26 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
| 27 | #define MANUFACTURER WoodKeys.click | 26 | #define MANUFACTURER WoodKeys.click |
| 28 | #define PRODUCT woodpad | 27 | #define PRODUCT Woodpad |
| 29 | 28 | ||
| 30 | /* key matrix size */ | 29 | /* key matrix size */ |
| 31 | #define MATRIX_ROWS 5 | 30 | #define MATRIX_ROWS 5 |
| @@ -40,17 +39,45 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) |
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) |
| 42 | * | 41 | * |
| 43 | */ | 42 | */ |
| 44 | #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 } | 43 | #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 } |
| 45 | #define MATRIX_COL_PINS { B1, B3, B2, B6 } | 44 | #define MATRIX_COL_PINS { B1, B3, B2, B6 } |
| 46 | #define UNUSED_PINS | 45 | #define UNUSED_PINS |
| 47 | 46 | ||
| 48 | /* COL2ROW, ROW2COL*/ | 47 | /* COL2ROW, ROW2COL */ |
| 49 | #define DIODE_DIRECTION COL2ROW | 48 | #define DIODE_DIRECTION COL2ROW |
| 50 | 49 | ||
| 51 | // #define BACKLIGHT_PIN B7 | 50 | //#define BACKLIGHT_PIN B7 |
| 52 | // #define BACKLIGHT_BREATHING | 51 | //#define BACKLIGHT_BREATHING |
| 53 | // #define BACKLIGHT_LEVELS 3 | 52 | //#define BACKLIGHT_LEVELS 3 |
| 53 | |||
| 54 | //#define RGB_DI_PIN E2 | ||
| 55 | //#ifdef RGB_DI_PIN | ||
| 56 | //# define RGBLED_NUM 16 | ||
| 57 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 58 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 59 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 60 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 61 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 62 | /*== all animations enable ==*/ | ||
| 63 | //# define RGBLIGHT_ANIMATIONS | ||
| 64 | /*== or choose animations ==*/ | ||
| 65 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 66 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 67 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 68 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 69 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 70 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 71 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 72 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 73 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 74 | /*== customize breathing effect ==*/ | ||
| 75 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 76 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 77 | /*==== use exp() and sin() ====*/ | ||
| 78 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 79 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 80 | //#endif | ||
| 54 | 81 | ||
| 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 56 | #define DEBOUNCE 5 | 83 | #define DEBOUNCE 5 |
| @@ -58,13 +85,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
| 59 | //#define MATRIX_HAS_GHOST | 86 | //#define MATRIX_HAS_GHOST |
| 60 | 87 | ||
| 61 | /* number of backlight levels */ | ||
| 62 | |||
| 63 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 88 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| 64 | #define LOCKING_SUPPORT_ENABLE | 89 | #define LOCKING_SUPPORT_ENABLE |
| 65 | /* Locking resynchronize hack */ | 90 | /* Locking resynchronize hack */ |
| 66 | #define LOCKING_RESYNC_ENABLE | 91 | #define LOCKING_RESYNC_ENABLE |
| 67 | 92 | ||
| 93 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 94 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 95 | */ | ||
| 96 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 97 | |||
| 68 | /* | 98 | /* |
| 69 | * Force NKRO | 99 | * Force NKRO |
| 70 | * | 100 | * |
| @@ -87,54 +117,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 87 | //#define FORCE_NKRO | 117 | //#define FORCE_NKRO |
| 88 | 118 | ||
| 89 | /* | 119 | /* |
| 90 | * Magic Key Options | ||
| 91 | * | ||
| 92 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 93 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 94 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 95 | * | ||
| 96 | * The options below allow the magic key functionality to be changed. This is | ||
| 97 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 98 | * | ||
| 99 | */ | ||
| 100 | |||
| 101 | /* control how magic key switches layers */ | ||
| 102 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 103 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 104 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 105 | |||
| 106 | /* override magic key keymap */ | ||
| 107 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 108 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 109 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 110 | //#define MAGIC_KEY_HELP1 H | ||
| 111 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 112 | //#define MAGIC_KEY_DEBUG D | ||
| 113 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 114 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 115 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 116 | //#define MAGIC_KEY_VERSION V | ||
| 117 | //#define MAGIC_KEY_STATUS S | ||
| 118 | //#define MAGIC_KEY_CONSOLE C | ||
| 119 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 120 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 121 | //#define MAGIC_KEY_LAYER0 0 | ||
| 122 | //#define MAGIC_KEY_LAYER1 1 | ||
| 123 | //#define MAGIC_KEY_LAYER2 2 | ||
| 124 | //#define MAGIC_KEY_LAYER3 3 | ||
| 125 | //#define MAGIC_KEY_LAYER4 4 | ||
| 126 | //#define MAGIC_KEY_LAYER5 5 | ||
| 127 | //#define MAGIC_KEY_LAYER6 6 | ||
| 128 | //#define MAGIC_KEY_LAYER7 7 | ||
| 129 | //#define MAGIC_KEY_LAYER8 8 | ||
| 130 | //#define MAGIC_KEY_LAYER9 9 | ||
| 131 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 132 | //#define MAGIC_KEY_LOCK CAPS | ||
| 133 | //#define MAGIC_KEY_EEPROM E | ||
| 134 | //#define MAGIC_KEY_NKRO N | ||
| 135 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 136 | |||
| 137 | /* | ||
| 138 | * Feature disable options | 120 | * Feature disable options |
| 139 | * These options are also useful to firmware size reduction. | 121 | * These options are also useful to firmware size reduction. |
| 140 | */ | 122 | */ |
| @@ -149,30 +131,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 149 | //#define NO_ACTION_LAYER | 131 | //#define NO_ACTION_LAYER |
| 150 | //#define NO_ACTION_TAPPING | 132 | //#define NO_ACTION_TAPPING |
| 151 | //#define NO_ACTION_ONESHOT | 133 | //#define NO_ACTION_ONESHOT |
| 152 | //#define NO_ACTION_MACRO | ||
| 153 | //#define NO_ACTION_FUNCTION | ||
| 154 | |||
| 155 | /* | ||
| 156 | * MIDI options | ||
| 157 | */ | ||
| 158 | |||
| 159 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 160 | //#define MIDI_ENABLE_STRICT 1 | ||
| 161 | |||
| 162 | /* enable basic MIDI features: | ||
| 163 | - MIDI notes can be sent when in Music mode is on | ||
| 164 | */ | ||
| 165 | //#define MIDI_BASIC | ||
| 166 | |||
| 167 | /* enable advanced MIDI features: | ||
| 168 | - MIDI notes can be added to the keymap | ||
| 169 | - Octave shift and transpose | ||
| 170 | - Virtual sustain, portamento, and modulation wheel | ||
| 171 | - etc. | ||
| 172 | */ | ||
| 173 | //#define MIDI_ADVANCED | ||
| 174 | 134 | ||
| 175 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 135 | /* disable these deprecated features by default */ |
| 176 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 136 | #define NO_ACTION_MACRO |
| 137 | #define NO_ACTION_FUNCTION | ||
| 177 | 138 | ||
| 178 | #endif | 139 | /* Bootmagic Lite key configuration */ |
| 140 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 141 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
