Skip to content

Customize LED config by registry settings#4

Merged
JohnAZoidberg merged 6 commits intomainfrom
led-config
Aug 14, 2025
Merged

Customize LED config by registry settings#4
JohnAZoidberg merged 6 commits intomainfrom
led-config

Conversation

@JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Aug 2, 2025

Solves #3

TODO:

  • Currently reconfiguring requires uninstalling the device and driver, then creating the registry entries and re-installing the driver. It should work just by disabling/enabling the device. Disabling device should work #5
  • Should create a tool to dump the LED array configuration so that we can check if the lamp positions are correctly calculated

Tested arrangements:

  • 0: Circular, layers of 8 (e.g. when 16 LEDs in total, two layers of 8 LEDs)
    • Works with 4 LEDs
    • Works with 8 LEDs
    • Works with 16 LEDs
  • 1: Circular, single layer
    • Works with 2 LEDs
    • Works with 4 LEDs
    • Works with 8 LEDs
    • Works with 16 LEDs
  • 2: Linear (e.g. LED strip)
    • Works with 4 LEDs
    • Works with 8 LEDs
    • Works with 16 LEDs
  • 3: Square Matrix (works best with a square number of LEDs)
    • Works with 9x9=36 LEDs
    • Works with 9x9+1=37 LEDs

@JohnAZoidberg JohnAZoidberg marked this pull request as draft August 2, 2025 16:33
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
It also shows a plot of the lamp locations

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
linux doesn't include the usage page id

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg
Copy link
Member Author

Tried a few scenarios and it works alright.

@JohnAZoidberg
Copy link
Member Author

Ray also helped test.

@JohnAZoidberg JohnAZoidberg marked this pull request as ready for review August 14, 2025 15:40
@JohnAZoidberg JohnAZoidberg merged commit fb02e2f into main Aug 14, 2025
2 checks passed
@JohnAZoidberg JohnAZoidberg deleted the led-config branch January 18, 2026 09:56
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.

1 participant