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
This commit is contained in:
Danny Tan 2025-10-06 07:50:03 +11:00 committed by GitHub
parent eae39d37c6
commit 85fa06c3db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 1 deletions

View file

@ -13,10 +13,22 @@
"rows": ["GP6", "GP29", "GP28"] "rows": ["GP6", "GP29", "GP28"]
}, },
"usb": { "usb": {
"device_version": "0.0.1", "device_version": "0.0.2",
"pid": "0x5050", "pid": "0x5050",
"vid": "0x7A79" "vid": "0x7A79"
}, },
"features": {
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"nkro": true,
"encoder": true
},
"encoder": {
"rotary": [
{ "pin_a": "GP2", "pin_b": "GP3" }
]
},
"community_layouts": ["ortho_3x3"], "community_layouts": ["ortho_3x3"],
"layouts": { "layouts": {
"LAYOUT_ortho_3x3": { "LAYOUT_ortho_3x3": {

View file

@ -0,0 +1,14 @@
// Copyright 2025 Zykrah
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#define ENCODER_PIN_C GP27
void keyboard_pre_init_kb(void) {
// Set encoder pin C low
gpio_set_pin_output_push_pull(ENCODER_PIN_C);
gpio_write_pin_low(ENCODER_PIN_C);
keyboard_pre_init_user();
}