Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Add pocketpad #20229

Merged
merged 16 commits into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions keyboards/ButterKeebs/PocketPad/PocketPad.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "pocketpad.h"
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 20 additions & 0 deletions keyboards/ButterKeebs/PocketPad/PocketPad.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef POCKETPAD_H
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
#define POCKETPAD_H

#include "quantum.h"

#define KEYMAP( \
K00, K01, K02, K03, \
K10, K11, K12, K13, \
K20, K21, K22, K23, \
K30, K31, K32, K33, \
K40, K41 \
) { \
{ K00, K01, K02, K03 }, \
{ K10, K11, K12, K13 }, \
{ K20, K21, K22, K23 }, \
{ K30, K31, K32, K33 }, \
{ K40, K41, KC_NO, KC_NO } \
}

#endif
11 changes: 11 additions & 0 deletions keyboards/ButterKeebs/PocketPad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "pocketpad.h"
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved

butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

KEYMAP(
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
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)
};
41 changes: 41 additions & 0 deletions keyboards/ButterKeebs/PocketPad/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# MCU name
MCU = atmega32u4

# Processor frequency.
# This will define a symbol, F_CPU, in all source code files equal to the
# processor frequency in Hz. You can then use this symbol in your source code to
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
# This will be an integer division of F_USB below, as it is sourced by
# F_USB after it has run through any CPU prescalers. Note that this value
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
F_CPU = 16000000

#
# LUFA specific
#
# Target architecture (see library "Board Types" documentation).
ARCH = AVR8

# Input clock frequency.
# This will define a symbol, F_USB, in all source code files equal to the
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
# at the end, this will be done automatically to create a 32-bit value in your
# source code.
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
OPT_DEFS += -DBOOTLOADER_SIZE=4096
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
69 changes: 69 additions & 0 deletions keyboards/butterkeebs/pocketpad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"manufacturer": "ButterKeebs",
"keyboard_name": "PocketPad",
"maintainer": "qmk",
"diode_direction": "ROW2COL",

"usb": {
"device_version": "1.0.0",
"pid": "0x1475",
"vid": "0xFEED"
},

"features": {
"audio": false,
"backlight": false,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgblight": false,
"sleep_led": false
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
},
"keyboard_folder": "butterkeebs/pocketpad",
"keymaps": {},
butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
"matrix_pins": {
"cols": ["F1", "C7", "D5", "B7"],
"rows": ["F7", "F6", "F5", "F4", "B1"]
},
"matrix_size": {
"cols": 4,
"rows": 5
},
"mouse_key": {
"enabled": true
},

butterkeebs marked this conversation as resolved.
Show resolved Hide resolved
"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]}
]
}
}
}