These are chat archives for CoraleStudios/Colore

24th
Mar 2018
Adam Hellberg
@Sharparam
Mar 24 2018 03:36
@PsiQss the SDK lets you set 5 different LED indices for Chroma Link, which are exposed in Colore on the ChromaLink device via the indexer (or by sending a Custom effect to the SetCustom method on ChromaLink
in v5.2.0 as: Chroma.Instance.ChromaLink[myIndex] = Color.Blue;, or in v6.x as: chroma.ChromaLink[myIndex] = Color.Blue; (where chroma is an instance previously obtained via ColoreProvider, for example var chroma = await ColoreProvider.CreateNativeAsync();)
PsiQss
@PsiQss
Mar 24 2018 07:57
Thank you.
I managed to change colors in the HDK before, but only all colors of a strip. if I use:
Chroma.Instance.ChromaLink[2] = Color.Blue;
It will set ALL the LEDs on a strip on port 1 to blue, which is not really what I'm looking for. I tried to mess around with the CustomEffect but still can't figure out how to access individual LEDs. The built-in Starlight effect lights them up randomly, so there has to be a way to access them somehow, probably through creation of a custom effect.
Unless by saying "the SDK lets you set 5 different LED indices for Chroma Link.." you mean that's the only thing the SDK lets you do? If that's the case, I'm going to whine to the SDK devs :P
Adam Hellberg
@Sharparam
Mar 24 2018 13:18
@PsiQss the SDK only exposes 5 LED indices, so i don't think there's anything more that can be done
IIRC they correspond to the different connections on the chroma link device? i don't have a chroma link so i'm not sure how it's set up
Adam Hellberg
@Sharparam
Mar 24 2018 13:24
@PsiQss this page seems to explain how the 5 different "virtual LEDs" work: https://developer.razerzone.com/works-with-chroma/chroma-link-guide/
so it seems index 0 is for every LED, and index 1-4 is for limited control of sections of LEDs
PsiQss
@PsiQss
Mar 24 2018 15:11

Yup, I've read through that page. The problem is, they've basically implemented their HDK like third party devices, which does not make any sense to me. Virtual LEDs are pretty much just zones. With HDK you can have 4 LED strips connected. Chroma Link 1 is all strips, CL2 is strip 1, CL3 is strip 2 and so on. Each strip has 16 LEDs on them, and that's what I'm trying to address. You'd think chroma.ChromaLink[i] would apply an effect to an entire zone, while CustomEffect would allow you to set up a custom effect while accessing individual LEDs, but that doesn't seem to be the case. As I mentioned before, the built in Starlight effect DOES manipulate the LEDs individually, 1 by 1, so it doesn't make any sense to me for them to not allow us to program our own effects.

Anyways, seems like it actually isn't possible through the SDK, I'll have to either find another way around it or just scrap my entire idea due to SDK limitations.. I just can't understand why would they implement their own HDK as CL device.. Well thanks for the help, I'll go harass the razer devs now since it doesn't seem to be a Colore issue ;)

Adam Hellberg
@Sharparam
Mar 24 2018 15:12
yeah, unfortunately the SDK does not give access to those individual LEDs
the starlight effect might be implemented in the firmware of the strips or something, so it is entirely contained in the hardware
there are some people who go the route of reverse engineering the interfaces and addresses the hardware directly, that might give more control
PsiQss
@PsiQss
Mar 24 2018 22:37
I'm not that advanced to reverse engineer stuff, especially in C++ but I might try to find and ask those guys that do this, maybe they can give me some hints. Thanks for all the help, I'll probably return when I have more questions lol :P And huge thanks for the amazing Colore library!
Adam Hellberg
@Sharparam
Mar 24 2018 23:42
no problem!