From 5349673378d8d77caa2e1dac7203865bd96d01e1 Mon Sep 17 00:00:00 2001 From: "jonylee@hfd" <108282809+jonylee1986@users.noreply.github.com> Date: Sat, 19 Aug 2023 08:41:07 +0800 Subject: [PATCH] Add VIA support for m6 (#1987) --- v3/monsgeek/m6/m6.json | 314 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 v3/monsgeek/m6/m6.json diff --git a/v3/monsgeek/m6/m6.json b/v3/monsgeek/m6/m6.json new file mode 100644 index 0000000000..b189306f4a --- /dev/null +++ b/v3/monsgeek/m6/m6.json @@ -0,0 +1,314 @@ +{ + "name": "M6", + "vendorId": "0xFFFE", + "productId": "0x0011", + "keycodes": ["qmk_lighting"], + "menus": [ + { + "label": "Lighting", + "content": [ + { + "label": "Backlight", + "content": [ + { + "label": "Brightness", + "type": "range", + "options": [0, 200], + "content": ["id_qmk_rgb_matrix_brightness", 3, 1] + }, + { + "label": "Effect", + "type": "dropdown", + "content": ["id_qmk_rgb_matrix_effect", 3, 2], + "options": [ + ["All Off", 0], + ["SOLID_COLOR", 1], + ["BREATHING", 2], + ["CYCLE_ALL", 3], + ["CYCLE_LEFT_RIGHT", 4], + ["CYCLE_UP_DOWN", 5], + ["RAINBOW_MOVING_CHEVRON", 6], + ["CYCLE_OUT_IN", 7], + ["CYCLE_OUT_IN_DUAL", 8], + ["CYCLE_PINWHEEL", 9], + ["CYCKE_SPIRAL", 10], + ["DUAL_BEACON", 11], + ["RAINBOW_BEACON", 12], + ["RAINDROPS", 13], + ["TYPING_HEATMAP", 14], + ["SOLID_REACTIVE_SIMPLE", 15], + ["SOLID_REACTIVE", 16], + ["SOLID_REACTIVE_CROSS", 17], + ["MATRIX_MULTISPLASH", 18] + + ] + }, + { + "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", + "label": "Color", + "type": "color", + "content": ["id_qmk_rgb_matrix_color", 3, 4] + } + ] + } + ] + } + ], + "matrix": { "rows": 5, "cols": 16 }, + "layouts": { + "keymap":[ + [ + { + "y": 0.25, + "x": 2.75 + }, + "0,2", + { + "x": 9 + }, + "0,11" + ], + [ + { + "y": -0.75, + "x": 0.75, + "c": "#aaaaaa" + }, + "0,0", + { + "c": "#cccccc" + }, + "0,1", + { + "x": 11 + }, + "0,12", + { + "c": "#777777", + "w": 2 + }, + "0,13", + { + "x": 1.25 + }, + "0,15" + ], + [ + { + "x": 0.75, + "w": 1.5 + }, + "1,0", + { + "c": "#cccccc" + }, + "1,1", + { + "x": 9.25 + }, + "1,10", + "1,11", + "1,12", + { + "w": 1.5 + }, + "1,13", + { + "x": 1, + "c": "#777777" + }, + "1,15" + ], + [ + { + "x": 0.5, + "w": 2 + }, + "2,0", + { + "c": "#cccccc" + }, + "2,1", + { + "x": 9.5 + }, + "2,10", + "2,11", + { + "c": "#aaaaaa", + "w": 2.25 + }, + "2,13", + { + "x": 0.75, + "c": "#777777" + }, + "2,15" + ], + [ + { + "x": 0.25, + "w": 2.5 + }, + "3,0", + { + "x": 10, + "c": "#cccccc" + }, + "3,10", + "3,13", + { + "c": "#777777", + "w": 2 + }, + "3,14", + { + "x": 0.25 + }, + "3,15" + ], + [ + { + "x": 0.25, + "w": 1.5 + }, + "4,0", + { + "x": 11.25, + "w": 1.25 + }, + "4,11", + { + "x": 1.75 + }, + "4,13", + "4,14", + "4,15" + ], + [ + { + "rx": 1, + "y": 3.5, + "x": 1.75, + "c": "#cccccc" + }, + "3,1" + ], + [ + { + "r": 10, + "rx": 1.5, + "x": 2.5 + }, + "0,3", + "0,4", + "0,5", + "0,6" + ], + [ + { + "x": 2.25 + }, + "1,2", + "1,3", + "1,4", + "1,5" + ], + [ + { + "x": 2.75 + }, + "2,2", + "2,3", + "2,4", + "2,5" + ], + [ + { + "x": 3.25 + }, + "3,2", + "3,3", + "3,4", + "3,5" + ], + [ + { + "x": 3, + "c": "#777777", + "w": 1.25 + }, + "4,1", + { + "c": "#cccccc", + "w": 2 + }, + "4,2", + { + "c": "#777777", + "w": 1.25 + }, + "4,5" + ], + [ + { + "r": -10, + "rx": 1, + "y": 2.5, + "x": 7.25, + "c": "#cccccc" + }, + "0,7", + "0,8", + "0,9", + "0,10" + ], + [ + { + "x": 6.75 + }, + "1,6", + "1,7", + "1,8", + "1,9" + ], + [ + { + "x": 7 + }, + "2,6", + "2,7", + "2,8", + "2,9" + ], + [ + { + "x": 6.5 + }, + "3,6", + "3,7", + "3,8", + "3,9" + ], + [ + { + "x": 6.5, + "w": 2.5 + }, + "4,9", + { + "c": "#777777", + "w": 1.75 + }, + "4,10" + ] + ] + } + }