diff options
author | jpuerto96 <jpuerto96@hotmail.com> | 2022-03-15 04:35:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 01:35:11 -0700 |
commit | e94c2df3f3908295c824e20c0593e718c45a0f56 (patch) | |
tree | b866d7517f2e82b072af014da34398b7dbc0b13b /keyboards/io_mini1800/config.h | |
parent | 9aaf4a5a9b19f1e2a12c3f2508e2083f7ec58bec (diff) |
[Keyboard] Io mini1800 (#16115)
* First commit
* first commit
* 2x3u layout functional
* 625u layout
* rotary encoder
* Modifications to keymaps
* Remove ingrained from io_mini branch
* Update readme
* Update info.json
* change hardware availability
* Change rules.mk wording to match other PR
* Update keyboards/io_mini1800/rules.mk
* Update keyboards/io_mini1800/keymaps/default/keymap.c
* Update keyboards/io_mini1800/keymaps/2x3u/keymap.c
* Update keyboards/io_mini1800/io_mini1800.c
* Update keyboards/io_mini1800/keymaps/2x3u/readme.md
* Update keyboards/io_mini1800/readme.md
Diffstat (limited to 'keyboards/io_mini1800/config.h')
-rw-r--r-- | keyboards/io_mini1800/config.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/io_mini1800/config.h b/keyboards/io_mini1800/config.h new file mode 100644 index 0000000000..ea7efd8ff4 --- /dev/null +++ b/keyboards/io_mini1800/config.h @@ -0,0 +1,40 @@ +// Copyright 2022 s8erdude (@jpuerto96) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xFEED +#define PRODUCT_ID 0x0000 +#define DEVICE_VER 0x0001 +#define MANUFACTURER jpuerto96 +#define PRODUCT io_mini1800 + +/* key matrix size */ +#define MATRIX_ROWS 10 +#define MATRIX_COLS 10 + +/* + * 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) + * + */ +#define MATRIX_ROW_PINS { D6, D7, B4, B5, D4, E6, B3, D2, D5, D3 } +#define MATRIX_COL_PINS { D1, D0, B7, B2, F0, F1, F7, F6, F4, F5 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +#define ENCODERS_PAD_A { B0 } +#define ENCODERS_PAD_B { B1 } + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 |