Exemplo n.º 1
0
 public void Reset()
 {
     foreach (int handle in controllers)
     {
         AuraSDK.SetMotherboardDefaultMode(handle);
     }
 }
Exemplo n.º 2
0
        public void setAll(byte[] color)
        {
            byte[] colors = { color[0], color[1], color[2] };

            foreach (int handle in controllers)
            {
                AuraSDK.SetMotherboardApplicationMode(handle);
                AuraSDK.SetMotherboardColors(handle, colors);
            }
        }
Exemplo n.º 3
0
        public void setAll(byte red, byte green, byte blue)
        {
            byte[] colors = { red, green, blue };

            foreach (int handle in controllers)
            {
                AuraSDK.SetMotherboardApplicationMode(handle);
                AuraSDK.SetMotherboardColors(handle, colors);
            }
        }
Exemplo n.º 4
0
 public byte[] getController(int handle)
 {
     byte[] all_colors = AuraSDK.GetMotherboardColors(handle);
     if (all_colors.Length >= 3)
     {
         return(new byte[] { all_colors[0], all_colors[1], all_colors[2] });
     }
     else
     {
         return(new byte[] { 0, 0, 0 });
     }
 }
Exemplo n.º 5
0
 public Aura()
 {
     controllers = AuraSDK.GetMotherboardControllers();
 }
Exemplo n.º 6
0
 public void setController(int handle, byte[] colors)
 {
     AuraSDK.SetMotherboardApplicationMode(handle);
     AuraSDK.SetMotherboardColors(handle, colors);
 }