diff options
author | Elias <[email protected]> | 2019-08-23 23:18:37 +0200 |
---|---|---|
committer | noroadsleft <[email protected]> | 2019-08-23 14:18:37 -0700 |
commit | e0f91f37c4b944b328f9e022b18f2f1ad702fcf4 (patch) | |
tree | b92f075e3b0aba0ebdc256c0e2c067025e384433 /keyboards/4by3/config.h | |
parent | ae44ec9820cdf5348e802c9bae3af34557617685 (diff) | |
download | qmk_firmware-e0f91f37c4b944b328f9e022b18f2f1ad702fcf4.tar.gz qmk_firmware-e0f91f37c4b944b328f9e022b18f2f1ad702fcf4.zip |
Added 4by3 keyboard (#6547)
* Added 4by3 keyboard
* Added DEVICE_VER and DESCRIPTION
* Removed F_CPU, F_USB, ARCH, and OPT_DEFS
* Add 3 new LAYOUT macros for orientations and fixes
* Apply suggestions from code review
Co-Authored-By: noroadsleft <[email protected]>
* Added comments to 4by3 and changed info.json
* Update keyboards/4by3/4by3.h
Co-Authored-By: fauxpark <[email protected]>
Diffstat (limited to 'keyboards/4by3/config.h')
-rw-r--r-- | keyboards/4by3/config.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/4by3/config.h b/keyboards/4by3/config.h new file mode 100644 index 0000000000..2095ee42c2 --- /dev/null +++ b/keyboards/4by3/config.h @@ -0,0 +1,26 @@ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xEEEE +#define PRODUCT_ID 0x2019 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Elias Sjögreen +#define PRODUCT 4by3 +#define DESCRIPTION A small 12 key keypad + +/* key matrix size */ +#define MATRIX_ROWS 3 +#define MATRIX_COLS 4 + +/* key matrix pins */ +#define MATRIX_ROW_PINS { D1, D0, D4 } +#define MATRIX_COL_PINS { C6, D7, E6, B4 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 |