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

Reading parameters #6

Open
ACavuoto opened this issue Jun 19, 2023 · 2 comments
Open

Reading parameters #6

ACavuoto opened this issue Jun 19, 2023 · 2 comments

Comments

@ACavuoto
Copy link

ACavuoto commented Jun 19, 2023

Hi Kelvie,

Apologies for opening an issue about this, but I was wondering if you could help me understand what this piece of code is doing:
image

I'm trying to build a lighter version of sidekick to easily swap inputs from the tray, and I'm trying to use your code as "live" documentation. Any help would be greatly appreciated!

Thanks
A

@kelvie
Copy link
Owner

kelvie commented Jun 19, 2023

Which part are you struggling with?

This creates a bytearray and sets the fields according to to the packet format. If the property value (prop16) is larger than one byte it splits it into two.

There's a bunch of discussion on the packet format here:

https://gist.github.com/wadimw/4ac972d07ed1f3b6f22a101375ecac41

@ACavuoto
Copy link
Author

ACavuoto commented Jun 26, 2023

Thanks @kelvie

I managed to capture the commands sent to the monitor from the UI. I was wondering if you could point me to the sequence I would need to send to the monitor to replicate the same request.

usb - dp - hdmi2 - hdmi1.zip

From the file, the requests:

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

2 participants