AndunHH / spacemouse

Repository for a 6 degree of freedom (DOF) mouse, which emulates a 3Dconnexion "Space Mouse Pro wireless". It is based on four joysticks with additional keys or an encoder
Other
90 stars 16 forks source link

LED does not come on. #59

Open starletzzang opened 1 week ago

starletzzang commented 1 week ago

LED does not come on. Connected 5V and VCC of LED, DIN to pin 5, GND to GND. Firmware is latest 0.8. Did I miss another fix? Thank you

ps. The LED bar is 5V, DIN, GND and is the one used in the old Orbion mouse.

AndunHH commented 1 week ago

Do you have a link or description of the led stripe?

Until now, the led support is "just" to enable a simple led on or off.

Your description "DIN" makes me wondering, that you are using a more intelligent led stripe, that needs the easy FastLed library. This is not too much effort, but I can't test it now, because I don't have it in hand.

starletzzang commented 1 week ago

i was attached LED image. Can you tell me what Define LEDpin 5 in config.h means? so there is a command that defines LEDpin as pin 5, so I connected pin 5 to din. It is like an LED that receives data from din and controls it with pwm to produce each color.

led

AndunHH commented 1 week ago

The LED support at the moment is only able to pull the pin to GND or high to 5V.

With this very basic implementation only a simple LED can be driven, when connected like this:

image

Do you have a model / ref no. for your LED stripe? I'm pretty sure we can get it working with the FastLED library, but this is not implemented yet.

What is your expected behavior, when we start to implement it? What should happen where on the LED stripe?

My simplest suggestion: Turn all LEDs (=bright white), when the 3D connexion driver tells the mouse to turn the led on. But this is really boring...

As this is not yet part of the repository, I mark this issue as a feature request as it is not a bug.

starletzzang commented 1 week ago

thanks reply Just like you said, For example, the LED can be specified by color, and the color can also be displayed as a gradient. And for the operation, wouldn't it be possible to create an interesting effect where the LED moves in the direction when the mouse joystick is rolled or twisted? (This is a recent gaming mouse effect)