diff options
author | Danny <nooges@users.noreply.github.com> | 2019-08-24 12:06:27 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-08-24 09:06:27 -0700 |
commit | 2c8d8be7187e800cfd465674449255b25e5d02b9 (patch) | |
tree | b001665e6994e415a3bcedfd9621b9d31b114410 /keyboards/jnao/config.h | |
parent | 70329b4fbb43078cc287203f1e786b5074a8fef9 (diff) | |
download | qmk_firmware-2c8d8be7187e800cfd465674449255b25e5d02b9.tar.gz |
[Keyboard] Add JNAO keyboard (#6598)
* Add JNAO keyboard
* Use layout macro for default_4x12
* Add bakingpy keymap
* Add info.json data
* Remove bakingpy keymap from jnao, add ortho_4x12 layout fetching
* Clear up default keymaps
Diffstat (limited to 'keyboards/jnao/config.h')
-rw-r--r-- | keyboards/jnao/config.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/keyboards/jnao/config.h b/keyboards/jnao/config.h new file mode 100644 index 000000000..f14aa4bb1 --- /dev/null +++ b/keyboards/jnao/config.h @@ -0,0 +1,52 @@ +/* +Copyright 2012 Jun Wako <wakojun@gmail.com> + +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 0x1337 +#define PRODUCT_ID 0x6017 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Maple Computing +#define PRODUCT JNAO Keyboard +#define DESCRIPTION A no-frills ortholinear keyboard + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 12 + +#define MATRIX_ROW_PINS { E6, F0, F5, F6, F7 } +#define MATRIX_COL_PINS { F1, F4, B1, B2, B3, B7, D1, D2, D4, D6, D7, B4 } +#define UNUSED_PINS + +#define BACKLIGHT_PIN D0 + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* number of backlight levels */ +#define BACKLIGHT_LEVELS 3 + +/* Set 0 if debouncing isn't 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 |