bluekeyes / pico-12vrgb-hid-controller Goto Github PK
View Code? Open in Web Editor NEW4-pin RGB controller using the Pi Pico and USB HID
License: MIT License
4-pin RGB controller using the Pi Pico and USB HID
License: MIT License
Once Windows detects a HID device as implementing a more specific API in the WinRT set, it seems to hide it from the generic WinRT HID API. While you can often still list the device, I couldn't actually open it or send messages.
This is mostly an issue for the lamp-array
subcommand, which is a direct binding to the Lighting and Illuminate HID API.
I haven't tried yet, but I suspect the lower-level win32 HID API might allow access to this device, even if the higher-level APIs do not: https://learn.microsoft.com/en-us/windows/win32/api/_hid/
Now that Dynamic Lighting is available in Window 11, it turns out my device isn't actually compatible. As discussed a bit in the README for the cli
package, when I tried to test this using the Windows APIs previously, I ran in to a hang that I couldn't solve. Unsurprisingly, whatever causes that problem also prevents Dynamic Lighting from working, since it presumably uses the same underlying APIs.
Since I last tried debugging this, Microsoft published https://github.com/microsoft/RP2040MacropadHidSample, which is also an RP2040-based implementation. The LampArray
APIs correctly discover a device running this sample code without hanging, which proves that the issue is with my code and not with Windows. I now think there's something wrong with my HID descriptor that causes the Windows APIs to hang.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.