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 1 commit
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
Prev Previous commit
Next Next commit
Resolved all issues
  • Loading branch information
butterkeebs committed Mar 22, 2023
commit d2cc9de08078e8c90fb13ea21abee0b109312851
2 changes: 1 addition & 1 deletion keyboards/ButterKeebs/PocketPad/PocketPad.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include "PocketPad.h"
#include "pocketpad.h"
58 changes: 0 additions & 58 deletions keyboards/ButterKeebs/PocketPad/config.h

This file was deleted.

74 changes: 7 additions & 67 deletions keyboards/ButterKeebs/PocketPad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,71 +1,11 @@
#include "PocketPad.h"
#include "pocketpad.h"

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

KEYMAP(
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_ENTER,
MO(1), KC_KP_0),

KEYMAP(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS)
};

const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
keyevent_t event = record->event;

switch (id) {

}
return MACRO_NONE;
}

void matrix_init_user(void) {
}

void matrix_scan_user(void) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

if (usb_led & (1 << USB_LED_NUM_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_CAPS_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_COMPOSE)) {

} else {

}

if (usb_led & (1 << USB_LED_KANA)) {

} else {

}

}
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)
};
15 changes: 0 additions & 15 deletions keyboards/ButterKeebs/PocketPad/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,3 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT

# Boot Section Size in *bytes*
OPT_DEFS += -DBOOTLOADER_SIZE=4096


# Build Options
# comment out to disable the options.
#
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
CONSOLE_ENABLE ?= no # Console for debug(+400)
COMMAND_ENABLE ?= no # Commands for debug and configuration
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality
AUDIO_ENABLE ?= no
RGBLIGHT_ENABLE ?= no
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
},
"keyboard_folder": "butterkeebs/pocketpad",
"keymaps": {},
"matrix_pins": {
"cols": ["F1", "C7", "D5", "B7"],
"rows": ["F7", "F6", "F5", "F4", "B1"]
},
"matrix_size": {
"cols": 4,
"rows": 5
},
"mouse_key": {
"enabled": true
},

"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]}
]
}
}
}