diff options
| author | Walter Hanley <walterphanley@gmail.com> | 2022-01-06 19:38:42 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-06 17:38:42 -0800 |
| commit | db8cf0b872a1350f11d2de931f7b375feaec69c2 (patch) | |
| tree | 0bb81fa745f3dcf0c310dd1308a3ded6e3aa45aa /keyboards/wren/config.h | |
| parent | 845529782ef13a3d3f86443cf74082832eb71d9d (diff) | |
| download | qmk_firmware-db8cf0b872a1350f11d2de931f7b375feaec69c2.tar.gz qmk_firmware-db8cf0b872a1350f11d2de931f7b375feaec69c2.zip | |
[Keyboard] Add Support for Wren Keyboard (#14570)
* initial prime_o commit
* Cleaned up comments, other things.
* Updated keymap to use standard seven-underscore KC_TRNS notation
* initial prime_o commit
* Cleaned up comments, other things.
* Updated keymap to use standard seven-underscore KC_TRNS notation
* Initial Code for Wren Keyboard
This is the initial hardware test commit for the wren. More detailed keymaps will be added soon.
* Update layout and add author
* Add PCB Image and Clarify Bootloader Instructions
* Update config.h
Updating config.h to remove mentions to LED backlighting (not supported on this PCB)
* Update wren.h to match PR checklist
* Roll back addition of code that should have been in wren.h
* Update /default/keymap.c
Make keyboard.c "pristine" to the best of my ability and add information about configuring a "non-standard" layout.
* Update readme.md
* Update keymap readmes to match PR checklist
* Update readme.md
* Final touches before PR
* Un-delete non-wren files
* Create rules.mk
* Create config.h
* Update keyboards/wren/keymaps/walterhanley/keymap.c
* Update keyboards/wren/keymaps/walterhanley/keymap.c
* Update keyboards/wren/wren.c
As per feedback, move encoder definition to wren.c from keymap.c.
* Update keyboards/wren/keymaps/walterhanley/keymap.c
As per feedback, move encoder definition to wren.c from keymap.c
* Update keyboards/wren/keymaps/default/keymap.c
As per feedback, move encoder definition to wren.c from keymap.c
* Create Keymap-Level config.h
I've been dealing with some issues with this board over-drawing power on certain devices; this should fix that issue on my build without affecting other users.
* Add bells and whistles to personal keymap
This update adds bells and whistles to my personal keymap. I couldn't figure out how to modify rotary encoder functionality for just my personal layout with the definition in wren.c, so I moved it back into the individual keymaps. Please let me know if this is an issue and I can look into possible alternative implementations.
* Update to match drashna's requested changes
* Update keymap.c
This update refines drashna's requested changes.
* Update keymap.c
Fix typo
Diffstat (limited to 'keyboards/wren/config.h')
| -rw-r--r-- | keyboards/wren/config.h | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/keyboards/wren/config.h b/keyboards/wren/config.h new file mode 100644 index 000000000..93b8468c1 --- /dev/null +++ b/keyboards/wren/config.h | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Walter Hanley | ||
| 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 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Walter Hanley | ||
| 27 | #define PRODUCT wren | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | // Rows are doubled-up (Bottom set of rows are used for the right half) | ||
| 31 | #define MATRIX_ROWS 10 | ||
| 32 | #define MATRIX_COLS 10 | ||
| 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 { D3, D2, C6, D4, B5 } | ||
| 45 | #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4, D7, F0 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | // define encoders | ||
| 49 | #define ENCODERS_PAD_A \ | ||
| 50 | { E6 } | ||
| 51 | #define ENCODERS_PAD_B \ | ||
| 52 | { B4 } | ||
| 53 | #define ENCODERS_PAD_A_RIGHT \ | ||
| 54 | { B4 } | ||
| 55 | #define ENCODERS_PAD_B_RIGHT \ | ||
| 56 | { E6 } | ||
| 57 | |||
| 58 | /* COL2ROW, ROW2COL */ | ||
| 59 | #define DIODE_DIRECTION COL2ROW | ||
| 60 | |||
| 61 | /* | ||
| 62 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 63 | */ | ||
| 64 | #define USE_I2C | ||
| 65 | |||
| 66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 67 | #define DEBOUNCE 5 | ||
| 68 | |||
| 69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 70 | //#define MATRIX_HAS_GHOST | ||
| 71 | |||
| 72 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 73 | #define LOCKING_SUPPORT_ENABLE | ||
| 74 | /* Locking resynchronize hack */ | ||
| 75 | #define LOCKING_RESYNC_ENABLE | ||
| 76 | |||
| 77 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 78 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 79 | */ | ||
| 80 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 81 | |||
| 82 | /* | ||
| 83 | * Force NKRO | ||
| 84 | * | ||
| 85 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 86 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 87 | * makefile for this to work.) | ||
| 88 | * | ||
| 89 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 90 | * until the next keyboard reset. | ||
| 91 | * | ||
| 92 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 93 | * fully operational during normal computer usage. | ||
| 94 | * | ||
| 95 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 96 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 97 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 98 | * power-up. | ||
| 99 | * | ||
| 100 | */ | ||
| 101 | //#define FORCE_NKRO | ||
| 102 | |||
| 103 | /* | ||
| 104 | * Feature disable options | ||
| 105 | * These options are also useful to firmware size reduction. | ||
| 106 | */ | ||
| 107 | |||
| 108 | /* disable debug print */ | ||
| 109 | //#define NO_DEBUG | ||
| 110 | |||
| 111 | /* disable print */ | ||
| 112 | //#define NO_PRINT | ||
| 113 | |||
| 114 | /* disable action features */ | ||
| 115 | //#define NO_ACTION_LAYER | ||
| 116 | //#define NO_ACTION_TAPPING | ||
| 117 | //#define NO_ACTION_ONESHOT | ||
| 118 | |||
| 119 | /* disable these deprecated features by default */ | ||
| 120 | #define NO_ACTION_MACRO | ||
| 121 | #define NO_ACTION_FUNCTION | ||
| 122 | |||
| 123 | /* Bootmagic Lite key configuration */ | ||
| 124 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 125 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
