summary refs log tree commit diff
diff options
context:
space:
mode:
authorbutterkeebs <124812866+butterkeebs@users.noreply.github.com>2023-04-02 18:50:14 +0100
committerGitHub <noreply@github.com>2023-04-02 11:50:14 -0600
commitb5d0c4469067ca81e3a8a60fc349f5ad6d92c363 (patch)
treed9addc473bcec68d21dd2ffabd078e050c2afa93
parentd0e0b9e583447fe3e8cc3d6dde3b839ceb1972b3 (diff)
[Keyboard] Add pocketpad (#20229)
Co-authored-by: jack <0x6a73@protonmail.com>
-rw-r--r--keyboards/butterkeebs/pocketpad/info.json56
-rw-r--r--keyboards/butterkeebs/pocketpad/keymaps/default/keymap.c14
-rw-r--r--keyboards/butterkeebs/pocketpad/readme.md27
-rw-r--r--keyboards/butterkeebs/pocketpad/rules.mk1
4 files changed, 98 insertions, 0 deletions
diff --git a/keyboards/butterkeebs/pocketpad/info.json b/keyboards/butterkeebs/pocketpad/info.json
new file mode 100644
index 0000000000..96adda2cee
--- /dev/null
+++ b/keyboards/butterkeebs/pocketpad/info.json
@@ -0,0 +1,56 @@
+{
+	"manufacturer": "ButterKeebs",
+    "keyboard_name": "PocketPad",
+    "maintainer": "qmk",
+    "diode_direction": "ROW2COL",
+	
+	"usb": {
+		"device_version": "1.0.0",
+        "pid": "0x1475",
+        "vid": "0xFEED"
+    },
+	
+    "features": {
+        "bootmagic": true,
+        "command": false,
+        "console": false,
+        "extrakey": true,
+        "mousekey": true,
+        "nkro": true
+    },
+    "matrix_pins": {
+        "cols": ["F1", "C7", "D5", "B7"],
+        "rows": ["F7", "F6", "F5", "F4", "B1"]
+    },
+
+    "processor": "atmega32u4",
+	"bootloader": "atmel-dfu",
+    "layouts": {
+		"LAYOUT": {
+			"layout": [
+				{"x": 0, "y": 0, "matrix": [0,0]},
+				{"x": 1, "y": 0, "matrix": [0,1]},
+				{"x": 2, "y": 0, "matrix": [0,2]},
+				{"x": 3, "y": 0, "matrix": [0,3]},
+					
+				{"x": 0, "y": 1, "matrix": [1,0]},
+				{"x": 1, "y": 1, "matrix": [1,1]},
+				{"x": 2, "y": 1, "matrix": [1,2]},
+				{"x": 3, "y": 1, "matrix": [1,3]},
+					
+				{"x": 0, "y": 2, "matrix": [2,0]},
+				{"x": 1, "y": 2, "matrix": [2,1]},
+				{"x": 2, "y": 2, "matrix": [2,2]},
+				{"x": 3, "y": 2, "matrix": [2,3]},
+					
+				{"x": 0, "y": 3, "matrix": [3,0]},
+				{"x": 1, "y": 3, "matrix": [3,1]},
+				{"x": 2, "y": 3, "matrix": [3,2]},
+				{"x": 3, "y": 3, "matrix": [3,3]},
+					
+				{"x": 0, "y": 4, "matrix": [4,0]},
+				{"x": 1, "y": 4, "matrix": [4,1]}	
+			]
+		}
+	}
+}
\ No newline at end of file
diff --git a/keyboards/butterkeebs/pocketpad/keymaps/default/keymap.c b/keyboards/butterkeebs/pocketpad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..0591fde140
--- /dev/null
+++ b/keyboards/butterkeebs/pocketpad/keymaps/default/keymap.c
@@ -0,0 +1,14 @@
+// ButterKeebs <butterkeebs@github>
+// SPDX-License-Identifier: GPL-2.0+
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+	LAYOUT(
+		KC_NUM_LOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, 
+		KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, 
+		KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_ENTER, 
+		KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_DOT, 
+		KC_F, KC_KP_0)
+};
\ No newline at end of file
diff --git a/keyboards/butterkeebs/pocketpad/readme.md b/keyboards/butterkeebs/pocketpad/readme.md
new file mode 100644
index 0000000000..0af8b7a3c6
--- /dev/null
+++ b/keyboards/butterkeebs/pocketpad/readme.md
@@ -0,0 +1,27 @@
+# PocketPad
+
+![PocketPad](https://tinyurl.com/2hffvnvb)
+
+*The PocketPad is a tiny 18 key macropad/numpad using 6mm tactile switches.*
+
+* Keyboard Maintainer: [ButterKeebs](https://github.com/butterkeebs)
+* Hardware Supported: *Supports current V1.0.0 PocketPad PCB and Elite C / pin compatible MCU boards.*
+* Hardware Availability: *Currently not for sale*
+
+Make example for this keyboard (after setting up your build environment):
+
+    make butterkeebs/pocketpad:default
+
+Flashing example for this keyboard:
+
+    make butterkeebs/pocketpad:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB. (Not available on Revision 1.0.0 PCB)
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/butterkeebs/pocketpad/rules.mk b/keyboards/butterkeebs/pocketpad/rules.mk
new file mode 100644
index 0000000000..f886ea2e8e
--- /dev/null
+++ b/keyboards/butterkeebs/pocketpad/rules.mk
@@ -0,0 +1 @@
+# This file intentionally blank
\ No newline at end of file