-
Notifications
You must be signed in to change notification settings - Fork 417
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 k8 (rgb) converted to info.json style #291
Conversation
Tested with K8 rgb ISO variant. All other variants is verified by a small python test routine comparing the autogenerated mapping macro, with the one in the original header files (from old master) |
Is via working? |
Should be, but haven't tested yet. I only did a quick test of plain iso layout, which worked as expected. |
I have the k8 ansi variant, if you need a tester I will gladly help |
Via is now verified as working (iso variant). Also updated default via keymap to be the same as windows iso layout. |
*/ | ||
|
||
// RGB Matrix Config | ||
#define DRIVER_LED_TOTAL 87 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these can now be 1 define
@@ -0,0 +1 @@ | |||
OPT_DEFS += -DOPTICAL_MATRIX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to figure out what will happen with this. we need something that works against the main qmk scan now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left it here, as I was unsure and do not have an optical keyboard..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably going to go with #299 once it gets the green light from qmk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has now been updated in qmk#19053
code is in upstream now, see the PR for usage refs
keyboards/keychron/k8/rgb/info.json
Outdated
"dip_switch_enable": true | ||
}, | ||
"rgb_matrix": { | ||
"driver": "SN32F24xB" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, it does show up in the autogenerated rules.mk file:
RGB_MATRIX_ENABLE ?= yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow it doesn't get picked up here. weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obj_keychron_k8_rgb_iso/src/info_rules.mk:RGB_MATRIX_ENABLE ?= yes
ce772b4
to
3323dfd
Compare
so... with this we can use VIA now? |
@davecarrijo seems that via is temporarily broken in this PR (it worked initially, but a lot has changed since then) |
Did you changed the pid and the vid? What it changes? |
I changed pid to the correct one for the iso variants, which also happens to fix via support :) |
this is looking quite nice actually, and it is the basis for the bluetooth pr, any chance this will get merged soonish? ;) |
The man !!!🫡 |
That would made it just one of the best keyboards out there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
.gitmodules
Outdated
@@ -4,8 +4,8 @@ | |||
branch = master | |||
[submodule "lib/chibios-contrib"] | |||
path = lib/chibios-contrib | |||
url = https://github.com/qmk/ChibiOS-Contrib | |||
branch = master | |||
url = https://github.com/SonixQMK/ChibiOS-Contrib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer required. please remove modifications on .gitmodules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestions for via v3 lighting
"CYCLE_SPIRAL", | ||
1 | ||
], | ||
[ | ||
"DUAL_BEACON", | ||
1 | ||
], | ||
[ | ||
"RAINBOW_BEACON", | ||
1 | ||
], | ||
[ | ||
"RAINBOW_PINWHEELS", | ||
1 | ||
], | ||
[ | ||
"RAINDROPS", | ||
1 | ||
], | ||
[ | ||
"JELLYBEAN_RAINDROPS", | ||
1 | ||
], | ||
[ | ||
"HUE_BREATHING", | ||
1 | ||
], | ||
[ | ||
"HUE_PENDULUM", | ||
1 | ||
], | ||
[ | ||
"HUE_WAVE", | ||
1 | ||
], | ||
["PIXEL_FRACTAL", 1], | ||
["PIXEL_RAIN", 1], | ||
[ | ||
"TYPING_HEATMAP", | ||
1 | ||
], | ||
[ | ||
"DIGITAL_RAIN", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_SIMPLE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_WIDE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTIWIDE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_CROSS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTICROSS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_NEXUS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTINEXUS", | ||
1 | ||
], | ||
[ | ||
"SPLASH", | ||
1 | ||
], | ||
[ | ||
"MULTISPLASH", | ||
1 | ||
], | ||
[ | ||
"SOLID_SPLASH", | ||
1 | ||
], | ||
[ | ||
"SOLID_MULTISPLASH", | ||
1 | ||
] | ||
], | ||
"supportedLightingValues": [ | ||
128, | ||
129, | ||
131 | ||
] | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"lighting": { | |
"extends": "qmk_rgblight", | |
"underglowEffects": [ | |
[ | |
"None", | |
0 | |
], | |
[ | |
"SOLID_COLOR", | |
1 | |
], | |
[ | |
"ALPHAS_MODS", | |
1 | |
], | |
[ | |
"GRADIENT_UP_DOWN", | |
1 | |
], | |
[ | |
"GRADIENT_LEFT_RIGHT", | |
1 | |
], | |
[ | |
"BREATHING", | |
1 | |
], | |
[ | |
"BAND_SAT", | |
1 | |
], | |
[ | |
"BAND_VAL", | |
1 | |
], | |
[ | |
"BAND_PINWHEEL_SAT", | |
1 | |
], | |
[ | |
"BAND_PINWHEEL_VAL", | |
1 | |
], | |
[ | |
"BAND_SPIRAL_SAT", | |
1 | |
], | |
[ | |
"BAND_SPIRAL_VAL", | |
1 | |
], | |
[ | |
"CYCLE_ALL", | |
1 | |
], | |
[ | |
"CYCLE_LEFT_RIGHT", | |
1 | |
], | |
[ | |
"CYCLE_UP_DOWN", | |
1 | |
], | |
[ | |
"CYCLE_OUT_IN", | |
1 | |
], | |
[ | |
"CYCLE_OUT_IN_DUAL", | |
1 | |
], | |
[ | |
"RAINBOW_MOVING_CHEVRON", | |
1 | |
], | |
[ | |
"CYCLE_PINWHEEL", | |
1 | |
], | |
[ | |
"CYCLE_SPIRAL", | |
1 | |
], | |
[ | |
"DUAL_BEACON", | |
1 | |
], | |
[ | |
"RAINBOW_BEACON", | |
1 | |
], | |
[ | |
"RAINBOW_PINWHEELS", | |
1 | |
], | |
[ | |
"RAINDROPS", | |
1 | |
], | |
[ | |
"JELLYBEAN_RAINDROPS", | |
1 | |
], | |
[ | |
"HUE_BREATHING", | |
1 | |
], | |
[ | |
"HUE_PENDULUM", | |
1 | |
], | |
[ | |
"HUE_WAVE", | |
1 | |
], | |
["PIXEL_FRACTAL", 1], | |
["PIXEL_RAIN", 1], | |
[ | |
"TYPING_HEATMAP", | |
1 | |
], | |
[ | |
"DIGITAL_RAIN", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_SIMPLE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_WIDE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTIWIDE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_CROSS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTICROSS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_NEXUS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTINEXUS", | |
1 | |
], | |
[ | |
"SPLASH", | |
1 | |
], | |
[ | |
"MULTISPLASH", | |
1 | |
], | |
[ | |
"SOLID_SPLASH", | |
1 | |
], | |
[ | |
"SOLID_MULTISPLASH", | |
1 | |
] | |
], | |
"supportedLightingValues": [ | |
128, | |
129, | |
131 | |
] | |
}, | |
"keycodes": ["qmk_lighting"], | |
"menus": ["qmk_rgb_matrix"], |
This will make it work with via v3 defs
"CYCLE_SPIRAL", | ||
1 | ||
], | ||
[ | ||
"DUAL_BEACON", | ||
1 | ||
], | ||
[ | ||
"RAINBOW_BEACON", | ||
1 | ||
], | ||
[ | ||
"RAINBOW_PINWHEELS", | ||
1 | ||
], | ||
[ | ||
"RAINDROPS", | ||
1 | ||
], | ||
[ | ||
"JELLYBEAN_RAINDROPS", | ||
1 | ||
], | ||
[ | ||
"HUE_BREATHING", | ||
1 | ||
], | ||
[ | ||
"HUE_PENDULUM", | ||
1 | ||
], | ||
[ | ||
"HUE_WAVE", | ||
1 | ||
], | ||
["PIXEL_FRACTAL", 1], | ||
["PIXEL_RAIN", 1], | ||
[ | ||
"TYPING_HEATMAP", | ||
1 | ||
], | ||
[ | ||
"DIGITAL_RAIN", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_SIMPLE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_WIDE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTIWIDE", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_CROSS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTICROSS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_NEXUS", | ||
1 | ||
], | ||
[ | ||
"SOLID_REACTIVE_MULTINEXUS", | ||
1 | ||
], | ||
[ | ||
"SPLASH", | ||
1 | ||
], | ||
[ | ||
"MULTISPLASH", | ||
1 | ||
], | ||
[ | ||
"SOLID_SPLASH", | ||
1 | ||
], | ||
[ | ||
"SOLID_MULTISPLASH", | ||
1 | ||
] | ||
], | ||
"supportedLightingValues": [ | ||
128, | ||
129, | ||
131 | ||
] | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"lighting": { | |
"extends": "qmk_rgblight", | |
"underglowEffects": [ | |
[ | |
"None", | |
0 | |
], | |
[ | |
"SOLID_COLOR", | |
1 | |
], | |
[ | |
"ALPHAS_MODS", | |
1 | |
], | |
[ | |
"GRADIENT_UP_DOWN", | |
1 | |
], | |
[ | |
"GRADIENT_LEFT_RIGHT", | |
1 | |
], | |
[ | |
"BREATHING", | |
1 | |
], | |
[ | |
"BAND_SAT", | |
1 | |
], | |
[ | |
"BAND_VAL", | |
1 | |
], | |
[ | |
"BAND_PINWHEEL_SAT", | |
1 | |
], | |
[ | |
"BAND_PINWHEEL_VAL", | |
1 | |
], | |
[ | |
"BAND_SPIRAL_SAT", | |
1 | |
], | |
[ | |
"BAND_SPIRAL_VAL", | |
1 | |
], | |
[ | |
"CYCLE_ALL", | |
1 | |
], | |
[ | |
"CYCLE_LEFT_RIGHT", | |
1 | |
], | |
[ | |
"CYCLE_UP_DOWN", | |
1 | |
], | |
[ | |
"CYCLE_OUT_IN", | |
1 | |
], | |
[ | |
"CYCLE_OUT_IN_DUAL", | |
1 | |
], | |
[ | |
"RAINBOW_MOVING_CHEVRON", | |
1 | |
], | |
[ | |
"CYCLE_PINWHEEL", | |
1 | |
], | |
[ | |
"CYCLE_SPIRAL", | |
1 | |
], | |
[ | |
"DUAL_BEACON", | |
1 | |
], | |
[ | |
"RAINBOW_BEACON", | |
1 | |
], | |
[ | |
"RAINBOW_PINWHEELS", | |
1 | |
], | |
[ | |
"RAINDROPS", | |
1 | |
], | |
[ | |
"JELLYBEAN_RAINDROPS", | |
1 | |
], | |
[ | |
"HUE_BREATHING", | |
1 | |
], | |
[ | |
"HUE_PENDULUM", | |
1 | |
], | |
[ | |
"HUE_WAVE", | |
1 | |
], | |
["PIXEL_FRACTAL", 1], | |
["PIXEL_RAIN", 1], | |
[ | |
"TYPING_HEATMAP", | |
1 | |
], | |
[ | |
"DIGITAL_RAIN", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_SIMPLE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_WIDE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTIWIDE", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_CROSS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTICROSS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_NEXUS", | |
1 | |
], | |
[ | |
"SOLID_REACTIVE_MULTINEXUS", | |
1 | |
], | |
[ | |
"SPLASH", | |
1 | |
], | |
[ | |
"MULTISPLASH", | |
1 | |
], | |
[ | |
"SOLID_SPLASH", | |
1 | |
], | |
[ | |
"SOLID_MULTISPLASH", | |
1 | |
] | |
], | |
"supportedLightingValues": [ | |
128, | |
129, | |
131 | |
] | |
}, | |
"keycodes": ["qmk_lighting"], | |
"menus": ["qmk_rgb_matrix"], |
This will make it work with via v3 defs
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist