Feature/stream deck plus xl - #176
Open
jowin202 wants to merge 4 commits into
Open
Conversation
added 4 commits
July 27, 2026 06:45
PILHelper._to_native_format() rotated images with Image.rotate()'s default expand=False, which keeps the original canvas size. For a square canvas (every existing device's key images) or a 0/180 degree rotation this is a no-op, but for a non-square canvas rotated by 90 or 270 degrees it silently clips the rotated content instead of growing the canvas to fit it. This is required to correctly support the Stream Deck + XL's touch window (1200x100) and full LCD panel (1280x800) images, which Elgato's protocol requires to be rotated 90 degrees counter-clockwise before upload. No behavioural change for any existing device.
Adds a new StreamDeckPlusXL device class implementing the Stream Deck + XL (36 keys in a 9x4 matrix, 6 rotary encoders, a touch-capable window strip, and a full LCD panel behind the keys), and registers its VID/PID (0x0FD9 / 0x00C6) with the DeviceManager. Implemented directly from Elgato's official HID protocol documentation: https://docs.elgato.com/streamdeck/hid/stream-deck-plus-xl https://docs.elgato.com/streamdeck/hid/general Key event, touchscreen event (TAP/PRESS/FLICK) and encoder event (BTN/ROTATE) parsing follow the same on-wire layout already used by the existing Stream Deck + implementation, just sized for 36 keys / 6 encoders. Button, touchscreen-window and full-screen images are all generated dynamically via PILHelper (instead of a hardcoded blank JPEG byte array), so they are always correct for this device's declared image formats -- including the 90 degree counter-clockwise rotation this device requires for its touchscreen and screen images. Note: the VID/PID and protocol details come from Elgato's published documentation; I don't have physical hardware to test against, so real-world verification (particularly key index ordering and image orientation) from someone with the device would be very welcome.
Mirrors example_plus.py: demonstrates per-key images, dial push/turn callbacks, drawing on the touchscreen window, and setting the full LCD panel image.
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.
Claude helped me.
I'll test it as soon as my stream deck plus xl arrives
Edited: oh I haven't seen there is already a pull request for plus XL version.
Please ignore this one.