mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 08:26:21 +00:00
Addition of Hotdog Pad (#24650)
* Add Hotdog Pad * remove encoder_map feature * Add rules.mk * move rules.mk into keymap * Update keyboards/onnenon/hotdog_pad/keyboard.json Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/onnenon/hotdog_pad/keyboard.json Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c Co-authored-by: Joel Challis <git@zvecr.com> * add hotdog_pad.c * fix reversed encoder pins * Update keyboards/onnenon/hotdog_pad/hotdog_pad.c Co-authored-by: Joel Challis <git@zvecr.com> --------- Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
39c40f55cb
commit
be7786bfc6
12
keyboards/onnenon/hotdog_pad/hotdog_pad.c
Normal file
12
keyboards/onnenon/hotdog_pad/hotdog_pad.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2024 Stephen Onnen (@onnenon)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb(void) {
|
||||||
|
// Enable the power pin for the Xiao Seeed rp2040 onboard NeoPixel
|
||||||
|
gpio_set_pin_output(GP11);
|
||||||
|
gpio_write_pin_high(GP11);
|
||||||
|
|
||||||
|
keyboard_pre_init_user();
|
||||||
|
}
|
53
keyboards/onnenon/hotdog_pad/keyboard.json
Normal file
53
keyboards/onnenon/hotdog_pad/keyboard.json
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"manufacturer": "onnenon",
|
||||||
|
"keyboard_name": "Hotdog Pad",
|
||||||
|
"maintainer": "onnenon",
|
||||||
|
"processor": "RP2040",
|
||||||
|
"bootloader": "rp2040",
|
||||||
|
"matrix_pins": {
|
||||||
|
"direct": [["GP1", "GP2", "GP4", "GP6", "GP0"]]
|
||||||
|
},
|
||||||
|
"usb": {
|
||||||
|
"device_version": "1.0.0",
|
||||||
|
"pid": "0x0001",
|
||||||
|
"vid": "0x4F4E"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"encoder": true,
|
||||||
|
"rgblight": true,
|
||||||
|
"extrakey": true,
|
||||||
|
"mousekey": true
|
||||||
|
},
|
||||||
|
"encoder": {
|
||||||
|
"rotary": [{ "pin_a": "GP29", "pin_b": "GP28" }]
|
||||||
|
},
|
||||||
|
"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": 4, "y": 0, "matrix": [0, 4] }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ws2812": {
|
||||||
|
"pin": "GP12",
|
||||||
|
"driver": "vendor"
|
||||||
|
},
|
||||||
|
"rgblight": {
|
||||||
|
"led_count": 1,
|
||||||
|
"max_brightness": 185,
|
||||||
|
"animations": {
|
||||||
|
"breathing": true,
|
||||||
|
"rainbow_mood": true,
|
||||||
|
"knight": true,
|
||||||
|
"christmas": true,
|
||||||
|
"static_gradient": true,
|
||||||
|
"rgb_test": true,
|
||||||
|
"alternating": true,
|
||||||
|
"twinkle": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c
Normal file
14
keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright 2024 Stephen Onnen (@onnenon)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(KC_A, KC_B, KC_C, KC_D, KC_MUTE)
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||||
|
[0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||||
|
};
|
||||||
|
#endif
|
1
keyboards/onnenon/hotdog_pad/keymaps/default/rules.mk
Normal file
1
keyboards/onnenon/hotdog_pad/keymaps/default/rules.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
ENCODER_MAP_ENABLE = yes
|
24
keyboards/onnenon/hotdog_pad/readme.md
Normal file
24
keyboards/onnenon/hotdog_pad/readme.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Hotdog Pad
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Stephen Onnen](https://github.com/onnenon)
|
||||||
|
* Hardware Supported: Seeed Studio XIAO RP2040
|
||||||
|
* Hardware Availability: https://github.com/onnenon/hotdog_pad
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make onnenon/hotdog_pad:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make onnenon/hotdog_pad: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 - some may have pads you must short instead
|
||||||
|
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user