diff options
Diffstat (limited to 'keyboards/handwired/angel/config.h')
| -rw-r--r-- | keyboards/handwired/angel/config.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/keyboards/handwired/angel/config.h b/keyboards/handwired/angel/config.h new file mode 100644 index 000000000..e2472a1a2 --- /dev/null +++ b/keyboards/handwired/angel/config.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 James Sa <james.sa.2013@gmail.com> | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0xFEED | ||
| 22 | #define PRODUCT_ID 0x0805 | ||
| 23 | |||
| 24 | #define MANUFACTURER JSA | ||
| 25 | #define PRODUCT Angel | ||
| 26 | /* USB Version in Binary-coded decimal: 0xJJMN where | ||
| 27 | * JJ is the major number, M is minor, N is sub minor. */ | ||
| 28 | #define DEVICE_VER 0x0100 // Version 1.00: hand-wire | ||
| 29 | |||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | #define MATRIX_ROWS 4 | ||
| 33 | #define MATRIX_COLS 13 | ||
| 34 | |||
| 35 | /* | ||
| 36 | * Keyboard Matrix Assignments | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { B6, B2, B5, B4 } | ||
| 43 | #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B3, B1, F7, F6, F5 } | ||
| 44 | #define UNUSED_PINS | ||
| 45 | #define DIODE_DIRECTION COL2ROW | ||
| 46 | |||
| 47 | // https://docs.qmk.fm/using-qmk/software-features/tap_hold | ||
| 48 | #define TAPPING_TERM 200 | ||
| 49 | #define IGNORE_MOD_TAP_INTERRUPT | ||
| 50 | |||
| 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 52 | #define DEBOUNCE 5 | ||
| 53 | |||
| 54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 55 | #define MATRIX_HAS_GHOST | ||
