Add Coban Pad 12A (#25039)

Co-authored-by: jack <jack@pngu.org>
This commit is contained in:
Dam Vu Duy 2025-04-07 00:56:19 +07:00 committed by GitHub
parent 625d62efdf
commit 9e775b8e9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// Copyright 2025 RyanDam (https://github.com/RyanDam)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U

View File

@ -0,0 +1,50 @@
{
"keyboard_name": "Coban Pad 12A",
"name": "Coban Pad 12A",
"url": "https://cobanstationery.com",
"maintainer": "Coban Stationery",
"manufacturer": "Coban Stationery",
"usb": {
"pid": "0xC12A",
"vid": "0xCB3A",
"device_version": "1.0.0"
},
"matrix_pins": {
"cols": ["GP18", "GP16", "GP11", "GP10"],
"rows": ["GP19", "GP17", "GP12"]
},
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "GP20", "pin_b": "GP21"}
]
},
"processor": "RP2040",
"bootloader": "rp2040",
"features": {
"bootmagic": true,
"encoder": true,
"extrakey": true,
"mousekey": true
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2}
]
}
}
}

View File

@ -0,0 +1,19 @@
// Copyright 2025 RyanDam (https://github.com/RyanDam)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_MPLY, KC_MPRV, KC_MUTE, KC_MNXT,
KC_PGUP, KC_ESC, KC_UP, KC_ENT,
KC_PGDN, KC_LEFT, KC_DOWN, KC_RIGHT
),
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif

View File

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View File

@ -0,0 +1,23 @@
# Coban Pad 12A
![Coban Pad 12A](https://i.imgur.com/PTIaQld.jpeg)
Small ortho keyboard with 11 hotswapable buttons and 1 encoder
* Keyboard Maintainer: [RyanDam](https://github.com/RyanDam)
* Hardware Supported: Coban Pad 12A
Make example for this keyboard (after setting up your build environment):
make coban/pad12a:default
Flashing example for this keyboard:
make coban/pad12a: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:
* **boot button**: Hold the BOOT button on the back of the PCB while plug in usb cable