diff options
author | Ladniy <[email protected]> | 2020-07-28 08:48:48 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-27 17:48:48 -0700 |
commit | 84cd07b0d3409d1bbb72691fd79c8a9a885363a0 (patch) | |
tree | 40328fd3625287241e24f2afd1382a513cc026fa /keyboards/jiran/config.h | |
parent | 6104609afa666750be49ccfa8df8d3ad87fb4f32 (diff) | |
download | qmk_firmware-84cd07b0d3409d1bbb72691fd79c8a9a885363a0.tar.gz qmk_firmware-84cd07b0d3409d1bbb72691fd79c8a9a885363a0.zip |
[Keyboard] Jiran keyboard (#9628)
* Add jirand folder from local catalog
* Add controller into readme
* Replace image of PCB
* Create rev2 folder for RGB version
* Rename keymap folder
* Add new rev for RGB light version
* Change some keycodes for RGB light
* Remove some unnecessary code
* Add via keymap
* Activate RBG light support
* Update some info
* Update layout image link
* Update keyboards/jiran/config.h
* Update keyboards/jiran/keymaps/via/config.h
* Update keyboards/jiran/keymaps/default/rules.mk
* Update keyboards/jiran/keymaps/default/readme.md
* Update keyboards/jiran/keymaps/default/keymap.c
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/config.h
* Update keyboards/jiran/rev2/config.h
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/rev1.c
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Some fix
* Update keyboards/jiran/keymaps/default/keymap.c
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev2/config.h
* Fix default keymap error
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rev2/rules.mk
* Update keyboards/jiran/rev1/rules.mk
* Update keyboards/jiran/config.h
* Update keyboards/jiran/rev1/config.h
* Update keyboards/jiran/rev2/config.h
* Delete by request
* Update keyboards/jiran/config.h
* Update keyboards/jiran/keymaps/via/keymap.c
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Update keyboards/jiran/rules.mk
* Change some info by request
* Update keyboards/jiran/rev1/rev1.h
* Remove by request
Diffstat (limited to 'keyboards/jiran/config.h')
-rw-r--r-- | keyboards/jiran/config.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/keyboards/jiran/config.h b/keyboards/jiran/config.h new file mode 100644 index 0000000000..da100292e2 --- /dev/null +++ b/keyboards/jiran/config.h @@ -0,0 +1,47 @@ +/* +Copyright 2020 Vladislav Morozov <[email protected]> + +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 0x1209 +#define PRODUCT_ID 0x3735 +#define DEVICE_VER 0x0300 +#define MANUFACTURER Ladniy +#define PRODUCT Jiran + +/* key matrix size */ +// Rows are doubled-up +#define MATRIX_ROWS 10 +#define MATRIX_COLS 6 + +// wiring of each half +#define MATRIX_ROW_PINS { B4, B5, F4, F5, F6 } +#define MATRIX_COL_PINS { D3, D2, D4, C6, D7, E6 } + + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 + +/* serial.c configuration for split keyboard */ +#define SOFT_SERIAL_PIN D1 +#define MASTER_LEFT |