Add MutePad keyboard (Handwired) (#16590)

* Add MutePad keyboard

* Update info.json and readme

* Move mutepad to handwired folder

* Address PR comments
This commit is contained in:
Joshua Barber
2022-03-20 17:02:46 +00:00
committed by GitHub
parent 2f095b8925
commit 6125f7bf4d
8 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,90 @@
// Copyright 2022 JoshwJB (@JoshwJB)
// 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 JoshwJB
#define PRODUCT MutePad
/* key matrix size */
#define MATRIX_ROWS 1
#define MATRIX_COLS 4
/*
* 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 \
{ F6 }
#define MATRIX_COL_PINS \
{ B1, B3, B2, B6 }
#define UNUSED_PINS
/* encoder support */
#define ENCODERS_PAD_A \
{ F4 }
#define ENCODERS_PAD_B \
{ F5 }
#define ENCODER_RESOLUTION 2
#define TAP_CODE_DELAY 10