antonpup / Aurora

Unified lighting effects across multiple brands and various games.
http://www.project-aurora.com/
MIT License
1.83k stars 367 forks source link

BlinkStick Support #499

Open TheLinthus opened 7 years ago

TheLinthus commented 7 years ago

Add custom device BlinkStick, is a USB device that allow you controls up to 192 individually addressable LEDs, or LEDs strips.

I'm planning to contribute with this device support, but don't know where to start. The device API allows you to controls more than one BlinkStick and with different sizes, from 1 to 192 RGB LEDs. I wold need to create an on-the-run customizable device, instead of a fixed layout pattern (like a keyboard). Just need leading.

Device Site Full API implementations BlinkStick .NET interface API on GitHub API Documentation for .NET

Usage eg.:

antonpup commented 7 years ago

Nice. I like it. I'll see what I can do about it in next two weeks (Finishing up the quarter). This is similar to how I did the Raspberry Pi support here: https://github.com/antonpup/Aurora/tree/pi-lighting Which allows user to change which keys are assigned to which lights. Similar can be done here.

jwrpalmer99 commented 7 years ago

I am using blinkstick already with aurora - I have it stuck to the back of the monitor doing ambient lighting based on keyboard average colour - its a very basic device script thanks to aurora and the blinkstick dotnet interface (just put this in the scripts/devices folder of aurora, and put the blinkstickdotnet.dll in the aurora program folder)

you will note I have a variable for number of leds (i use 32) and a multiplier (which is kinda like a gamma correction for the backlighting)... you can obviously expand on this a lot if you want to use some of the leds for cpu usage or game status visualisation...

http://pastebin.com/3Zm3sJ2h

TheLinthus commented 7 years ago

Sweet. That is a great start point. I was thinking in make a more user friendly interface direct on Aurora config. Something like, chose mode to 'ws2812', choosing the number of LEDs, then setting LED 0 to 29 for Health bar and from 30 to 59 for Mana bar. I have an array of LEDs under my desk and going to place some in the back of my monitor. Exactly how you can set numbers 1 to 0 or F keys on your keyboard.

stuntguy3000 commented 7 years ago

+Support Great product.