diff options
author | Filip Sund <filip.sund@gmail.com> | 2018-11-09 00:12:42 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-11-08 15:12:42 -0800 |
commit | ef84bd979979f092980dc68d513a906e084c8c57 (patch) | |
tree | 388ac0b98fb0fc9db21428f73116831e39d793f7 /keyboards/30wer/config.h | |
parent | 5eb69ca224f3d4233860a658e6a27516d86c4de7 (diff) | |
download | qmk_firmware-ef84bd979979f092980dc68d513a906e084c8c57.tar.gz |
Keyboard: Add 30wer config and keymap (#4386)
* Preliminary 30wer firmware. Not tested on real board yet.
* Added a layer to default 30wer keymap.
* Wrote readme for 30wer.
* Added 30wer info.json.
Diffstat (limited to 'keyboards/30wer/config.h')
-rw-r--r-- | keyboards/30wer/config.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/30wer/config.h b/keyboards/30wer/config.h new file mode 100644 index 000000000..d49758524 --- /dev/null +++ b/keyboards/30wer/config.h @@ -0,0 +1,31 @@ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x1234 +#define PRODUCT_ID 0x5678 +#define DEVICE_VER 0x0000 +#define MANUFACTURER 8o7wer +#define PRODUCT 30wer +#define DESCRIPTION Gherkin style construction 30% staggered pcb kit + +/* key matrix size */ +#define MATRIX_ROWS 3 +#define MATRIX_COLS 13 + +/* pcb default pin-out */ +#define MATRIX_ROW_PINS { E6, B4, B5 } +#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D1, D0, D4, C6, D7 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ +) + +/* prevent stuck modifiers */ +#define PREVENT_STUCK_MODIFIERS |