Skip to content

squeakyneb/OpenRGB.NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRGB.NET

Nuget

OpenRGB.NET is a C# client for the OpenRGB SDK. It is meant to be a simple client, providing a method for each of the functionalities available in the SDK. Tested on Windows 10 and Arch Linux.

Installation

You can simply add the nuget package as a reference to your project.

Usage example

Setting every led to red

using var client = new OpenRGBClient(name: "My OpenRGB Client", autoconnect: true, timeout: 1000);

var deviceCount = client.GetControllerCount();
var devices = client.GetAllControllerData();

for (int i = 0; i < devices.Length; i++)
{
    var leds = Enumerable.Range(0, devices[i].Colors.Length)
        .Select(_ => new Color(255, 0, 0))
        .ToArray();
    client.UpdateLeds(i, leds);
}

About

C# wrapper for the OpenRGB SDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%