From 5511d8aae3bdeaa33ec66591c88ebc18652f5b08 Mon Sep 17 00:00:00 2001 From: Vino Rodrigues <366673+vinorodrigues@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:24:52 +1100 Subject: [PATCH 1/2] Add Binepad BNK8 --- v3/binepad/bnk8/bnk8.json | 123 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 v3/binepad/bnk8/bnk8.json diff --git a/v3/binepad/bnk8/bnk8.json b/v3/binepad/bnk8/bnk8.json new file mode 100644 index 0000000000..425785fea1 --- /dev/null +++ b/v3/binepad/bnk8/bnk8.json @@ -0,0 +1,123 @@ +{ + "name": "Binepad BNK8", + "vendorId": "0x4249", + "productId": "0x4E41", + "matrix": { "rows": 3, "cols": 3 }, + "keycodes": [ "qmk_lighting" ], + "menus": [ + { + "label": "Lighting", + "content": [ + { + "label": "Backlight", + "content": [ + { + "label": "Effect", + "type": "dropdown", + "content": [ "id_qmk_rgb_matrix_effect", 3, 2 ], + "options": [ + [ "00. None", 0 ], + [ "01. Solid Color", 1 ], + [ "02. Breathing", 2 ], + [ "03. Cycle_all", 3 ], + [ "04. Cycle Left Right", 4 ], + [ "05 .Cycle Up Down", 5 ], + [ "06. Cycle Pinwheel", 6 ], + [ "07. Jellybean Raindrops", 7 ], + [ "08. Solid Reactive Simple", 8 ], + [ "09. Solid Reactive", 9 ], + [ "10. Splash", 10 ], + [ "11. Solid Splash", 11 ], + [ "12. Starlight", 12 ], + [ "13. Starlight Dual Hue", 13 ], + [ "14. Starlight Dual Saturation", 14 ], + [ "15. Riverflow", 15 ], + [ "16. Per-key static RGB", 16 ] + ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} > 0 && {id_qmk_rgb_matrix_effect} < 16", + "label": "Color", + "type": "color", + "content": [ "id_qmk_rgb_matrix_color", 3, 4 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} > 0", + "label": "Brightness", + "type": "range", + "options": [ 0, 180 ], + "content": [ "id_qmk_rgb_matrix_brightness", 3, 1 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} > 1 && {id_qmk_rgb_matrix_effect} < 16", + "label": "Effect Speed", + "type": "range", + "options": [ 0, 255 ], + "content": [ "id_qmk_rgb_matrix_effect_speed", 3, 3 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "1. Top Left Key", + "type": "color", + "content": [ "id_custom_color[0]", 0, 1, 0 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "2. Top Centre Key", + "type": "color", + "content": [ "id_custom_color[1]", 0, 1, 1 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "3. Middle Left Key", + "type": "color", + "content": [ "id_custom_color[2]", 0, 1, 2 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "4. Middle Centre Key", + "type": "color", + "content": [ "id_custom_color[3]", 0, 1, 5 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "5. Middle Right Key", + "type": "color", + "content": [ "id_custom_color[4]", 0, 1, 4 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "6. Bottom Left Key", + "type": "color", + "content": [ "id_custom_color[5]", 0, 1, 3 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "7. Bottom Centre Key", + "type": "color", + "content": [ "id_custom_color[6]", 0, 1, 6 ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} == 16", + "label": "8. Bottom Right Key", + "type": "color", + "content": [ "id_custom_color[7]", 0, 1, 7 ] + } + ] + } + ] + } + ], + "layouts": { + "keymap": [ + [ {"w":0.25,"h":0.25,"d":true},"" ], + [ {"y":-0.75,"x":0.25},"0,0", "0,1", "0,2\n\n\n\n\n\n\n\n\ne0" ], + [ {"x":0.25},"1,0", "1,1", "1,2" ], + [ {"x":0.25},"2,0", "2,1", "2,2" ], + [ {"x":3.25,"w":0.25,"h":0.25,"d":true},"" ] + ] + }, + "customKeycodes": [ + { "name": "Caffeine", "title": "Host machine keep awake", "shortName": "KC_COFFEE" } + ] +} From 31b608c26fb1dc9e12136db8d34ad00a84fdeae9 Mon Sep 17 00:00:00 2001 From: Vino Rodrigues <366673+vinorodrigues@users.noreply.github.com> Date: Thu, 12 Dec 2024 21:14:23 +1100 Subject: [PATCH 2/2] json format --- v3/binepad/bnk8/bnk8.json | 237 +++++++++++++++++++++++++++++++------- 1 file changed, 198 insertions(+), 39 deletions(-) diff --git a/v3/binepad/bnk8/bnk8.json b/v3/binepad/bnk8/bnk8.json index 425785fea1..e9998eee38 100644 --- a/v3/binepad/bnk8/bnk8.json +++ b/v3/binepad/bnk8/bnk8.json @@ -2,8 +2,13 @@ "name": "Binepad BNK8", "vendorId": "0x4249", "productId": "0x4E41", - "matrix": { "rows": 3, "cols": 3 }, - "keycodes": [ "qmk_lighting" ], + "matrix": { + "rows": 3, + "cols": 3 + }, + "keycodes": [ + "qmk_lighting" + ], "menus": [ { "label": "Lighting", @@ -14,94 +19,207 @@ { "label": "Effect", "type": "dropdown", - "content": [ "id_qmk_rgb_matrix_effect", 3, 2 ], + "content": [ + "id_qmk_rgb_matrix_effect", + 3, + 2 + ], "options": [ - [ "00. None", 0 ], - [ "01. Solid Color", 1 ], - [ "02. Breathing", 2 ], - [ "03. Cycle_all", 3 ], - [ "04. Cycle Left Right", 4 ], - [ "05 .Cycle Up Down", 5 ], - [ "06. Cycle Pinwheel", 6 ], - [ "07. Jellybean Raindrops", 7 ], - [ "08. Solid Reactive Simple", 8 ], - [ "09. Solid Reactive", 9 ], - [ "10. Splash", 10 ], - [ "11. Solid Splash", 11 ], - [ "12. Starlight", 12 ], - [ "13. Starlight Dual Hue", 13 ], - [ "14. Starlight Dual Saturation", 14 ], - [ "15. Riverflow", 15 ], - [ "16. Per-key static RGB", 16 ] + [ + "00. None", + 0 + ], + [ + "01. Solid Color", + 1 + ], + [ + "02. Breathing", + 2 + ], + [ + "03. Cycle_all", + 3 + ], + [ + "04. Cycle Left Right", + 4 + ], + [ + "05 .Cycle Up Down", + 5 + ], + [ + "06. Cycle Pinwheel", + 6 + ], + [ + "07. Jellybean Raindrops", + 7 + ], + [ + "08. Solid Reactive Simple", + 8 + ], + [ + "09. Solid Reactive", + 9 + ], + [ + "10. Splash", + 10 + ], + [ + "11. Solid Splash", + 11 + ], + [ + "12. Starlight", + 12 + ], + [ + "13. Starlight Dual Hue", + 13 + ], + [ + "14. Starlight Dual Saturation", + 14 + ], + [ + "15. Riverflow", + 15 + ], + [ + "16. Per-key static RGB", + 16 + ] ] }, { "showIf": "{id_qmk_rgb_matrix_effect} > 0 && {id_qmk_rgb_matrix_effect} < 16", "label": "Color", "type": "color", - "content": [ "id_qmk_rgb_matrix_color", 3, 4 ] + "content": [ + "id_qmk_rgb_matrix_color", + 3, + 4 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} > 0", "label": "Brightness", "type": "range", - "options": [ 0, 180 ], - "content": [ "id_qmk_rgb_matrix_brightness", 3, 1 ] + "options": [ + 0, + 180 + ], + "content": [ + "id_qmk_rgb_matrix_brightness", + 3, + 1 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} > 1 && {id_qmk_rgb_matrix_effect} < 16", "label": "Effect Speed", "type": "range", - "options": [ 0, 255 ], - "content": [ "id_qmk_rgb_matrix_effect_speed", 3, 3 ] + "options": [ + 0, + 255 + ], + "content": [ + "id_qmk_rgb_matrix_effect_speed", + 3, + 3 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "1. Top Left Key", "type": "color", - "content": [ "id_custom_color[0]", 0, 1, 0 ] + "content": [ + "id_custom_color[0]", + 0, + 1, + 0 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "2. Top Centre Key", "type": "color", - "content": [ "id_custom_color[1]", 0, 1, 1 ] + "content": [ + "id_custom_color[1]", + 0, + 1, + 1 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "3. Middle Left Key", "type": "color", - "content": [ "id_custom_color[2]", 0, 1, 2 ] + "content": [ + "id_custom_color[2]", + 0, + 1, + 2 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "4. Middle Centre Key", "type": "color", - "content": [ "id_custom_color[3]", 0, 1, 5 ] + "content": [ + "id_custom_color[3]", + 0, + 1, + 5 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "5. Middle Right Key", "type": "color", - "content": [ "id_custom_color[4]", 0, 1, 4 ] + "content": [ + "id_custom_color[4]", + 0, + 1, + 4 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "6. Bottom Left Key", "type": "color", - "content": [ "id_custom_color[5]", 0, 1, 3 ] + "content": [ + "id_custom_color[5]", + 0, + 1, + 3 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "7. Bottom Centre Key", "type": "color", - "content": [ "id_custom_color[6]", 0, 1, 6 ] + "content": [ + "id_custom_color[6]", + 0, + 1, + 6 + ] }, { "showIf": "{id_qmk_rgb_matrix_effect} == 16", "label": "8. Bottom Right Key", "type": "color", - "content": [ "id_custom_color[7]", 0, 1, 7 ] + "content": [ + "id_custom_color[7]", + 0, + 1, + 7 + ] } ] } @@ -110,14 +228,55 @@ ], "layouts": { "keymap": [ - [ {"w":0.25,"h":0.25,"d":true},"" ], - [ {"y":-0.75,"x":0.25},"0,0", "0,1", "0,2\n\n\n\n\n\n\n\n\ne0" ], - [ {"x":0.25},"1,0", "1,1", "1,2" ], - [ {"x":0.25},"2,0", "2,1", "2,2" ], - [ {"x":3.25,"w":0.25,"h":0.25,"d":true},"" ] + [ + { + "w": 0.25, + "h": 0.25, + "d": true + }, + "" + ], + [ + { + "y": -0.75, + "x": 0.25 + }, + "0,0", + "0,1", + "0,2\n\n\n\n\n\n\n\n\ne0" + ], + [ + { + "x": 0.25 + }, + "1,0", + "1,1", + "1,2" + ], + [ + { + "x": 0.25 + }, + "2,0", + "2,1", + "2,2" + ], + [ + { + "x": 3.25, + "w": 0.25, + "h": 0.25, + "d": true + }, + "" + ] ] }, "customKeycodes": [ - { "name": "Caffeine", "title": "Host machine keep awake", "shortName": "KC_COFFEE" } + { + "name": "Caffeine", + "title": "Host machine keep awake", + "shortName": "KC_COFFEE" + } ] }