Skip to content

Add Toypad LED mirroring and GET_LED support - #2

Merged
NeverCookFirst merged 1 commit into
NeverCookFirst:masterfrom
harrysof:master
Aug 26, 2026
Merged

NeverCookFirst merged 1 commit into
NeverCookFirst:masterfrom
harrysof:master

Conversation

@harrysof

Copy link
Copy Markdown
Contributor

Implement LED mirroring for the emulated LEGO Dimensions Toypad: parse HID LED commands (0xC0–0xC8) in handle_led_command, store per-region led_pad_state behind m_led_mutex, and only bump m_led_serial when a region actually changes. Call handle_led_command from interrupt_transfer (no change to game acknowledgements). Add GET_LED handling in the TCP listener to return the 30-byte LED snapshot, plus a send_all helper and slot-validation exception for GET_LED. Update README with protocol and behavior notes and logging details.

Implement LED mirroring for the emulated LEGO Dimensions Toypad: parse HID LED commands (0xC0–0xC8) in handle_led_command, store per-region led_pad_state behind m_led_mutex, and only bump m_led_serial when a region actually changes. Call handle_led_command from interrupt_transfer (no change to game acknowledgements). Add GET_LED handling in the TCP listener to return the 30-byte LED snapshot, plus a send_all helper and slot-validation exception for GET_LED. Update README with protocol and behavior notes and logging details.
@NeverCookFirst
NeverCookFirst merged commit 6905c5a into NeverCookFirst:master Aug 26, 2026
8 of 10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants