summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Tan <23428162+zykrah@users.noreply.github.com>2025-10-06 07:50:03 +1100
committerGitHub <noreply@github.com>2025-10-05 14:50:03 -0600
commit85fa06c3db45d33d19dc2bdea6049d60ef294bee (patch)
tree63a81e3b706d23c1dcaf0c3f00e3492b2cf7202b
parenteae39d37c634646dfab59d801bbf957572cf3dce (diff)
Update Idyllic pizzapad with Encoder (#25683)
* Update pizzapad with encoder * Added extra features to enable volume controls * Added license header and updated pin number * Remove config.h file * Update keyboard.json features and pizzapad.c license header
-rw-r--r--keyboards/idyllic/pizzapad/keyboard.json14
-rw-r--r--keyboards/idyllic/pizzapad/pizzapad.c14
2 files changed, 27 insertions, 1 deletions
diff --git a/keyboards/idyllic/pizzapad/keyboard.json b/keyboards/idyllic/pizzapad/keyboard.json
index 638db19822..590d354034 100644
--- a/keyboards/idyllic/pizzapad/keyboard.json
+++ b/keyboards/idyllic/pizzapad/keyboard.json
@@ -13,10 +13,22 @@
13 "rows": ["GP6", "GP29", "GP28"] 13 "rows": ["GP6", "GP29", "GP28"]
14 }, 14 },
15 "usb": { 15 "usb": {
16 "device_version": "0.0.1", 16 "device_version": "0.0.2",
17 "pid": "0x5050", 17 "pid": "0x5050",
18 "vid": "0x7A79" 18 "vid": "0x7A79"
19 }, 19 },
20 "features": {
21 "bootmagic": true,
22 "mousekey": true,
23 "extrakey": true,
24 "nkro": true,
25 "encoder": true
26 },
27 "encoder": {
28 "rotary": [
29 { "pin_a": "GP2", "pin_b": "GP3" }
30 ]
31 },
20 "community_layouts": ["ortho_3x3"], 32 "community_layouts": ["ortho_3x3"],
21 "layouts": { 33 "layouts": {
22 "LAYOUT_ortho_3x3": { 34 "LAYOUT_ortho_3x3": {
diff --git a/keyboards/idyllic/pizzapad/pizzapad.c b/keyboards/idyllic/pizzapad/pizzapad.c
new file mode 100644
index 0000000000..11a35193aa
--- /dev/null
+++ b/keyboards/idyllic/pizzapad/pizzapad.c
@@ -0,0 +1,14 @@
1// Copyright 2025 Zykrah
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "quantum.h"
5
6#define ENCODER_PIN_C GP27
7
8void keyboard_pre_init_kb(void) {
9 // Set encoder pin C low
10 gpio_set_pin_output_push_pull(ENCODER_PIN_C);
11 gpio_write_pin_low(ENCODER_PIN_C);
12
13 keyboard_pre_init_user();
14}