Implement LampArray HID and hook up to crosecbus driver#1
Merged
Conversation
HID code from: windows-driver-samples\hid\vhidmini2\driver\umdf2
Also transformed KdPrint to Trace* functions.
Can load PDB into TraceView and see logs.
Shows up in device manager and by qmk_hid if I modify it:
```
32ac:0033
Manufacturer: "Framework"
Product: "Desktop UMDF ARGB Driver"
FW Version: 1.0.1
Serial No: "FRAMPBCP00"
VID/PID: 32ac:0033
Interface: -1
Path: "\\\\?\\HID#HIDCLASS#1&2d595ca7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
Usage Page: 0x0059
```
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Hardcoded 8 LEDs in a circle like in our chassis fan. Can think about how to customize that in the future for a 16 LED fan or other ARGB modules. Can now properly show up in Windows settings and Windows-universal-samples\Samples\LampArray Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
TraceView already tells us which driver a log is from. Don't need to print that. Signed-off-by: Daniel Schaefer <dhs@frame.work>
Works on Framework Desktop to control the ARGB fan with Windows Settings and compatible applications. Signed-off-by: Daniel Schaefer <dhs@frame.work>
Member
Author
If disabling the device twice (first time windows wants me to reboot and if I don't reboot, I can click disable again). The DeviceContext is NULL in FrameworkArgbEvtDriverContextCleanup so it crashes. Signed-off-by: Daniel Schaefer <dhs@frame.work>
Fix error that occurs sometimes: DriverVer set to a date in the future (postdated DriverVer not allowed) Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



HID code from: windows-driver-samples\hid\vhidmini2\driver\umdf2
Also transformed KdPrint to Trace* functions.
Can load PDB into TraceView and see logs.
Shows up in device manager and by qmk_hid if I modify it: