09-03-2018 05:42 AM - last edited on 03-06-2024 08:10 PM by ROGBot
09-03-2018 02:56 PM
09-19-2018 11:36 PM
var aura = new AuraDevelopement();
aura.AURARequireToken();
var kb = aura.GetAllDevices()[0];
kb.SetMode(0); // per key color mode
uint color = 255 << 16; //green
for (uint i = 0; i < kb.LightCount; i++)
{
kb.SetLightColor(i, color);
}
kb.Apply();
09-24-2018 09:10 PM
STRIKER_Perm wrote:
What device you tested on? I've tried on notebook's keyboard and it doesn't work.
In ServiceMediator works only get_QueryAllDeviceCap method and returns info about my keyboard? but GetProfile and SetProfile do nothing.
I've found a way to controll leds using AuraDevelopement class, but it sets incorrect colors if trying to set per key color and not using one of default effects.
var aura = new AuraDevelopement();
aura.AURARequireToken();
var kb = aura.GetAllDevices()[0];
kb.SetMode(0); // per key color mode
uint color = 255 << 16; //green
for (uint i = 0; i < kb.LightCount; i++)
{
kb.SetLightColor(i, color);
}
kb.Apply();
public static class Generic
{
public static uint ToUint(this System.Drawing.Color c)
{
return (uint)(((c.A << 24) | (c.B << 16) | (c.G << 😎 | c.R) & 0xffffffffL);
}
}
Use it like this :
uint color =System.Drawing.Color.Green.ToUint();
09-24-2018 10:44 PM
GallantJR2 wrote:
They have inversed the blue and red in the uint... use that snippet :
public static class Generic
{
public static uint ToUint(this System.Drawing.Color c)
{
return (uint)(((c.A << 24) | (c.B << 16) | (c.G << 😎 | c.R) & 0xffffffffL);
}
}
Use it like this :
uint color =System.Drawing.Color.Green.ToUint();
10-16-2018 01:01 PM
10-25-2018 12:50 PM
STRIKER_Perm wrote:
It works, but only when I use kb.SetMode(1); which makes keyboard have only one color for all keys.
When I use kb.SetMode(0); to set color for each key separately it works differently. System.Drawing.Color.Green.ToUint(); becomes red and to set green color I should use System.Drawing.Color.Blue.ToUint();, it is not the big problem, I just need another method with another color order, but it is not the biggest problem. The biggest problem, that green is not so green :). It have slightly different tone and some keys have some red lighting.
It happens only when I set color using my program in official AURA software there is no such problems. Also as you can see the bug appears only for some of the keys.
10-28-2018 06:59 AM
CX gamer wrote:
Whoa this is big! Do you think it will be possible to implement DRAM and Addressable RGB? Thanks for doing this, I need this!