diff options
author | jfescobar18 <81986725+jfescobar18@users.noreply.github.com> | 2021-08-19 12:39:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 10:39:30 -0700 |
commit | 425e1e665dc3c114fc42878f2b6a9d3225e5e6b5 (patch) | |
tree | 3cc7e9a58c86d3729c7d619a8e0a63d19f4bf462 /keyboards/dumbpad/config.h | |
parent | 3b4c35da6b476c8777c3b492179d30260ffbf895 (diff) |
[Keyboard] Dumbpad VIA support added (#13512)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/dumbpad/config.h')
-rw-r--r-- | keyboards/dumbpad/config.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/keyboards/dumbpad/config.h b/keyboards/dumbpad/config.h index 5a1a1c92b8..7322d1bbb5 100644 --- a/keyboards/dumbpad/config.h +++ b/keyboards/dumbpad/config.h @@ -21,14 +21,29 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* USB Device descriptor parameter */ #define VENDOR_ID 0xFEED #define PRODUCT_ID 0x0913 +#define DEVICE_VER 0x0007 #define MANUFACTURER imchipwood #define PRODUCT dumbpad /* Column/Row IO definitions */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 5 +#define MATRIX_ROW_PINS { F4, F5, F6, F7 } +#define MATRIX_COL_PINS { C6, D7, E6, B4, B5 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 +/* Single rotary encoder */ +#define ENCODERS_PAD_A { B2, D0 } +#define ENCODERS_PAD_B { D4, D1 } +#define ENCODER_RESOLUTIONS { 4, 4 } + +/* Onboard LEDs */ +#define LED_00 B3 +#define LED_01 B1 -/* Reduce tapdance required taps from 5 to 2 */ -#define TAPPING_TOGGLE 2 +/* Bootmagic - hold down rotary encoder pushbutton while plugging in to enter bootloader */ +#define BOOTMAGIC_LITE_ROW 3 +#define BOOTMAGIC_LITE_COLUMN 0 |