From c40c4a34c15f1782018cece4c3e6adcde5783596 Mon Sep 17 00:00:00 2001 From: Dam Vu Duy Date: Sat, 3 Feb 2024 07:45:36 +0700 Subject: [PATCH] Add Coban Pad 9A (#2102) * add support for Coban Pad 9A * Add support for qmk lighting --- v3/coban/pad9a/pad9a.json | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 v3/coban/pad9a/pad9a.json diff --git a/v3/coban/pad9a/pad9a.json b/v3/coban/pad9a/pad9a.json new file mode 100644 index 0000000000..3597ebc739 --- /dev/null +++ b/v3/coban/pad9a/pad9a.json @@ -0,0 +1,75 @@ +{ + "name": "Coban Pad 9A", + "vendorId": "0xCB3A", + "productId": "0xCC9A", + "keycodes": ["qmk_lighting"], + "menus": [ + { + "label": "Lighting", + "content": [ + { + "label": "Backlight", + "content": [ + { + "label": "Brightness", + "type": "range", + "options": [0, 255], + "content": ["id_qmk_rgb_matrix_brightness", 3, 1] + }, + { + "label": "Effect", + "type": "dropdown", + "content": ["id_qmk_rgb_matrix_effect", 3, 2], + "options": [ + "All Off", + "Solid Color", + "Breathing", + "Cycle All", + "Rainbow Beacon", + "Raindrops", + "Pixel Rain", + "Typing Heatmap", + "Digital Rain", + "Solid Reactive Simple", + "Solid Reactive Wide", + "Solid Reactive Nexus", + "Spash" + ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} != 0", + "label": "Effect Speed", + "type": "range", + "options": [0, 255], + "content": ["id_qmk_rgb_matrix_effect_speed", 3, 3] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} != 0 && {id_qmk_rgb_matrix_effect} != 24 && {id_qmk_rgb_matrix_effect} != 28 && {id_qmk_rgb_matrix_effect} != 29 && {id_qmk_rgb_matrix_effect} != 32", + "label": "Color", + "type": "color", + "content": ["id_qmk_rgb_matrix_color", 3, 4] + } + ] + } + ] + } + ], + "matrix": { "rows": 1, "cols": 8 }, + "layouts": { + "keymap": [ + [ + "0,0\n\n\n\n\n\n\n\n\ne0", + {"y": 0, "x": 1}, + "0,1\n\n\n\n\n\n\n\n\ne1", + {"y": 1.15, "x": -3}, + "0,2", + "0,3", + "0,4", + {"y": 1, "x": -3}, + "0,5", + "0,6", + "0,7" + ] + ] + } +}