{
    "name": "KM16pro",
    "vendorId": "0x28E9",
    "productId": "0x3145",
    "matrix": {"rows": 4, "cols": 6},

    "layouts":{
        "keymap":[
            ["0,0","0,1","0,2","0,3","0,4\n\n\n\n\n\n\n\n\ne0",{"x":0.5},"0,5\n\n\n\n\n\n\n\n\ne1"],
            ["1,0","1,1","1,2","1,3"],
            ["2,0","2,1","2,2","2,3",{"x":0.5},{"y":0.25},{"w":1.5},"2,5\n\n\n\n\n\n\n\n\ne2"],
            [{"y":-0.25},"3,0","3,1","3,2","3,3"]
        ]
    },

    "keycodes": ["qmk_lighting"],
    "customKeycodes": [
        {"name": "USB Host",  "title": "USB Host",  "shortName": "USB"},
        {"name": "Bluetooth Host 1","title": "Bluetooth Host 1", "shortName": "BLE1"},
        {"name": "Bluetooth Host 2","title": "Bluetooth Host 2", "shortName": "BLE2"},
        {"name": "Bluetooth Host 3","title": "Bluetooth Host 3", "shortName": "BLE3"},
        {"name": "2.4G", "title": "2.4G Host", "shortName": "2.4G"},
        {"name": "Reset","title": "Mcu Reset", "shortName": "Reset"},
        {"name": "Battery Level", "title": "Battery Level", "shortName": "Batt"},
        {"name": "Layer Toggle",  "title": "Layer Toggle",  "shortName": "LR_TOG"}
    ],
    "menus": [
        {
            "label": "Lighting",
            "content": [
            {
                "label": "Underglow",
                "content": [
                {
                    "label": "Brightness",
                    "type": "range",
                    "options": [0, 255],
                    "content": ["id_qmk_rgblight_brightness", 2, 1]
                },
                {
                    "label": "Effect",
                    "type": "dropdown",
                    "content": ["id_qmk_rgblight_effect", 2, 2],
                    "options": [
                        "All Off",
                        "Solid Color",
                        "Breathing 1",
                        "Breathing 2",
                        "Breathing 3",
                        "Breathing 4",
                        "Rainbow Mood 1",
                        "Rainbow Mood 2",
                        "Rainbow Mood 3",
                        "Rainbow Swirl 1",
                        "Rainbow Swirl 2",
                        "Rainbow Swirl 3",
                        "Rainbow Swirl 4",
                        "Rainbow Swirl 5",
                        "Rainbow Swirl 6",
                        "snake 1",
                        "snake 2",
                        "snake 3",
                        "snake 4",
                        "snake 5",
                        "snake 6"
                  ]
                },
                {
                    "showIf": "{id_qmk_rgblight_effect} != 0 && {id_qmk_rgblight_effect} != 35",
                    "label": "Color",
                    "type": "color",
                    "content": ["id_qmk_rgblight_color", 2, 4]
                }
              ]
            },
            {

                "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": [
                        "\u5168\u7184All Off",
                        "\u5355\u8272Solid Color",
                        "\u547c\u5438Breathing",
                        "\u4eae\u5ea6\u6761Band Val.",
                        "\u5168\u5faa\u73afCycle All",
                        "\u5de6\u53f3\u5faa\u73afCycle Left/Right",
                        "\u4e0a\u4e0b\u5faa\u73afCycle Up/Down",
                        "\u5185\u5916\u5faa\u73afCycle Out/In",
                        "\u7b80\u5355\u6309\u952eSolid Reactive Simple",
                        "\u6309\u952e-\u8054\u7ed3Solid Reactive Nexus",
                        "\u98de\u6e85Spash",
                        "\u5355\u8272\u98de\u6e85Solid Splash"
                    ]
                },
                {
                    "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]
                }
              ]
            }
          ]
        }
      ]
   }
