diff options
author | Dao Tak Isaac <[email protected]> | 2021-10-10 04:55:00 +0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-09 14:55:00 -0700 |
commit | 3c188d98a1aebbabb06c635f91195182aa84fa4d (patch) | |
tree | 28a275049db66af04b68dddb375e32ac6f3eb66c /keyboards/dtisaac/cg108/config.h | |
parent | f216c20fc74fc1b8ef2e6d952b17b1ee1914e236 (diff) | |
download | qmk_firmware-3c188d98a1aebbabb06c635f91195182aa84fa4d.tar.gz qmk_firmware-3c188d98a1aebbabb06c635f91195182aa84fa4d.zip |
[Keyboard] Add cg108 keyboard and fix keymap Dosa40rgb (#14753)
* Add cg108 keyboard and fix keymap Dosa40rgb
* Update keyboards/dtisaac/cg108/readme.md
* Update keyboards/dtisaac/dosa40rgb/rules.mk
* Update keyboards/dtisaac/cg108/info.json
* Update keyboards/dtisaac/cg108/keymaps/default/keymap.c
* Update keyboards/dtisaac/cg108/rules.mk
* Update keyboards/dtisaac/cg108/rules.mk
Diffstat (limited to 'keyboards/dtisaac/cg108/config.h')
-rw-r--r-- | keyboards/dtisaac/cg108/config.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/keyboards/dtisaac/cg108/config.h b/keyboards/dtisaac/cg108/config.h new file mode 100644 index 0000000000..7ce2de42b8 --- /dev/null +++ b/keyboards/dtisaac/cg108/config.h @@ -0,0 +1,62 @@ +/* +Copyright 2021 DTIsaac + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x4454 // DT +#define PRODUCT_ID 0x4973 // Is +#define DEVICE_VER 0x0002 +#define MANUFACTURER DTIsaac +#define PRODUCT CG108 + +/* key matrix size */ +#define MATRIX_ROWS 11 +#define MATRIX_COLS 11 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * + */ +/* key matrix pins */ +#define MATRIX_ROW_PINS { F4, F1, F0, F5, F6, F7, D4, D5, D3, D2, D0 } +#define MATRIX_COL_PINS { C7, C6, B4, D7, B3, B2, B0, E6, B1, D1, D6 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +#define LED_NUM_LOCK_PIN B5 +#define LED_CAPS_LOCK_PIN B6 +#define LED_SCROLL_LOCK_PIN B7 +#define LED_PIN_ON_STATE 0 + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE |