-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support for other CoolerMaster CK5xx keyboards #2
Comments
Forked and showed my work in #3 |
Perfect! I will find some time to refactor the code to include your changes. |
- reported & suggested by @cscheib - additional keyboard models can be added by extending the KeyboardPIDs enum
@cscheib Thanks for letting me know that CK530 is compatible. |
@vookimedlo awesome, thanks! |
Note that although it works not all keys light up.
|
I don't have a CK530 keyboard, so I cannot do USB communication sniffs and see where those mentioned keys are encoded. However, you can debug it without a USB sniffer on your side, by changing offsets in map below (by 3 - // R,G,B -> three bytes). https://github.com/vookimedlo/ck550-macos/blob/master/src/CK550OffEffectCustomizationLayoutUS.swift
|
These keyboards all use the same SDK, so you'd only need to listen for more USB IDs. I'm not a Swift developer, otherwise I'd submit a PR.
I cracked open the code, changed the product_id (pid) to 0x009f:
func startHIDMonitoring() -> Bool { return hid.monitorEnumeration(vid: 0x2516, pid: 0x009f, usagePage: 0xFF00, usage: 0x00) }
and was able to get my CK530 working with this... so it's definitely possible. I just don't know how to monitor more than one USB ID!
The text was updated successfully, but these errors were encountered: