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

💡[QUESTION] control_out_protocol with two OUT packets #140

Open
peterburk opened this issue Sep 11, 2024 · 0 comments
Open

💡[QUESTION] control_out_protocol with two OUT packets #140

peterburk opened this issue Sep 11, 2024 · 0 comments

Comments

@peterburk
Copy link

To display the CAPS lock LED on a keyboard, it's necessary to send the following:

image

I've been able to send a single OUT using

                const uint8_t capsReportSetup[8] = { 0x21, 0x09, 0x00, 0x02, 0x01, 0x00, 0x01, 0x00 };
                const uint8_t capsReportOut[1] = {0x02};
                control_out_protocol(device, capsReportSetup, 8, capsReportOut, 1);

but I need to send 2 OUT packets to switch on the LED.

image

I'm getting a STALL after the first OUT transaction.

Any suggestions how to complete this USB transaction properly using Pico-PIO-USB?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant