Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mokey12x2 #1907

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions v3/mokey/mokey12x2/mokey12x2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"name": "mokey12x2",
"vendorId": "0x6653",
"productId": "0x012A",
"matrix": { "rows": 4,"cols": 5 },
"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]
}
]
}
]
}
],
Comment on lines +6 to +63
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like you have RGB enabled in QMK at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, QMK has not added RGB function, I am going to modify it, can you pass the review of VIA first

Copy link
Collaborator

@Xelus22 Xelus22 Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No either remove it for now and then add it back in later when you update QMK, or add it to QMK first. Otherwise your users will have errors all the time.

"layouts": {
"keymap":[
[
{
"x": 0.25,
"c": "#777777",
"w": 1.5,
"h": 1.5
},
"0,4",
{
"x": 1,
"w": 1.5,
"h": 1.5
},
"1,4"
],
[
{
"y": 0.5,
"c": "#aaaaaa"
},
"3,0",
"3,1",
{
"x": 0.5
},
"3,2",
"3,3"
],
[
{
"y": 0.25,
"x": 0.25,
"c": "#cccccc"
},
"0,0",
"0,1",
"0,2",
"0,3"
],
[
{
"x": 0.25
},
"1,0",
"1,1",
"1,2",
"1,3"
],
[
{
"x": 0.25
},
"2,0",
"2,1",
"2,2",
"2,3"
]
]
}
}