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

Only one LED lights up on BlinkStick Square with 8 LEDs #4

Open
kepochan opened this issue Nov 5, 2024 · 1 comment
Open

Only one LED lights up on BlinkStick Square with 8 LEDs #4

kepochan opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@kepochan
Copy link

kepochan commented Nov 5, 2024

Description:

First off, thank you for this awesome project in Swift! It’s fantastic to have a Swift implementation.

However, I noticed an issue when using it with the BlinkStick Square. The device has 8 LEDs, but currently, only one LED lights up when running the code. It would be great if the implementation could support all 8 LEDs to take full advantage of the device.

Steps to Reproduce:

Connect the BlinkStick Square with 8 LEDs.
Run the beezyLight code.
Run an app using the microphone.
Expected Behavior:

All 8 LEDs on the BlinkStick Square should light up as per the configured pattern.

Actual Behavior:

Only one LED lights up, while the other 7 remain off.

Additional Information:

BlinkStick Model: BlinkStick Square with 8 LEDs
MacOS 14.6.1

@leonardodino leonardodino self-assigned this Nov 12, 2024
@leonardodino
Copy link
Owner

Hey @kepochan sorry for the delay. Hope you are doing well.
Thanks for calling this out, I hadn't ever realised it was lighting up a single LED, I can confirm that is also true on my model.
I bought it with the "BlinkStick Square Enclosure" 3d printed thing and haven't ever used it without, since it diffuses light so well that I thought it was lighting all of them 😅

see attached picture:

blinkstick square lighting 1 LED with the 3d printed enclosure in place

Going over the the reference implementation I noticed there are 2 types of message:

  • one which is compatible with all blinksticks (0x1 which unfortunately only lights one LED and which this app is using)
  • a newer one which receives a channel and index to light up (0x5).

I'm not looking to change to something less compatible right now and I haven't figured out a way to get the number of the LEDs present on the attached device. (seems they all share a single USB vendor+product id pair, so would need some other way to differentiate).

I have implemented a hard-coded version for 8 LEDs on the blinkstick-square-8-leds branch. compile it and see if fits your needs 😄

Best of luck!

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