rgb_net - RGB.NET.Devices.Corsair 0.0.1.78
Corsair-Device-Implementations of RGB.NET
PM> Install-Package RGB.NET.Devices.Corsair -Version 0.0.1.78 -Source https://www.myget.org/F/rgb_net/api/v3/index.json
> nuget.exe install RGB.NET.Devices.Corsair -Version 0.0.1.78 -Source https://www.myget.org/F/rgb_net/api/v3/index.json
> dotnet add package RGB.NET.Devices.Corsair --version 0.0.1.78 --source https://www.myget.org/F/rgb_net/api/v3/index.json
source https://www.myget.org/F/rgb_net/api/v3/index.json
nuget RGB.NET.Devices.Corsair ~> 0.0.1.78
Copy to clipboard
> choco install RGB.NET.Devices.Corsair --version 0.0.1.78 --source https://www.myget.org/F/rgb_net/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "rgb_net" -SourceLocation "https://www.myget.org/F/rgb_net/api/v2"
Install-Module -Name "RGB.NET.Devices.Corsair" -RequiredVersion "0.0.1.78" -Repository "rgb_net"
Copy to clipboard
Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/rgb_net/symbols/
RGB.NET
IMPORTANT NOTE
This is a library to integrate RGB-devices into your own application. It does not contain any executables!
If you're looking for a full blown software solution to manage your RGB-devices, take a look at Artemis.
Getting Started
Setup
- Add the RGB.NET.Core and Devices-Nugets for all devices you want to use.
- For some of the vendors SDK-libraries are needed. Check the contained Readmes for more information in that case.
- Create a new
RGBSurface.
RGBSurface surface = new RGBSurface();
- Initialize the providers for all devices you want to use and add the devices to the surface. For example:
CorsairDeviceProvider.Instance.Initialize(throwExceptions: true);
surface.Attach(CorsairDeviceProvider.Instance.Devices);
The Initialize-method allows to load only devices of specific types by setting a filter and for debugging purposes allows to enable exception throwing. (By default they are catched and provided through the Exception-event.)
You can also use the Load-Extension on the surface.
surface.Load(CorsairDeviceProvider.Instance);
While most device-providers are implemented in a way that supports fast loading like this some may have a different loading procedures. (For example the
WS281XDeviceProviderrequires device-definitions before loading.)
- Add an update-trigger. In most cases the TimerUpdateTrigger is preferable, but you can also implement your own to fit your needs.
surface.RegisterUpdateTrigger(new TimerUpdateTrigger());
If you want to trigger updates manually the
ManualUpdateTriggershould be used.
- This step is optional but recommended. For rendering the location of each LED on the surface can be important. Since not all SDKs provide useful layout-information you might want to add Layouts to your devices. (TODO: add wiki article for this) Same goes for the location of the device on the surface. If you don't care about the exact location of the devices you can use:
surface.AlignDevices();
The basic setup is now complete and you can start setting up your rendering.
Basic Rendering
As an example we'll add a moving rainbow over all devices on the surface.
- Create a led-group containing all leds on the surface (all devices)
ILedGroup allLeds = new ListLedGroup(surface, surface.Leds);
- Create a rainbow-gradient.
RainbowGradient rainbow = new RainbowGradient();
- Add a decorator to the gradient to make it move. (Decorators are
rainbow.AddDecorator(new MoveGradientDecorator(surface));
- Create a texture (the size - in this example 10, 10 - is not important here since the gradient shoukd be stretched anyway)
ITexture texture = new ConicalGradientTexture(new Size(10, 10), rainbow);
- Add a brush rendering the texture to the led-group
allLeds.Brush = new TextureBrush(texture);
Full example
RGBSurface surface = new RGBSurface();
surface.Load(CorsairDeviceProvider.Instance);
surface.AlignDevices();
surface.RegisterUpdateTrigger(new TimerUpdateTrigger());
ILedGroup allLeds = new ListLedGroup(surface, surface.Leds);
RainbowGradient rainbow = new RainbowGradient();
rainbow.AddDecorator(new MoveGradientDecorator(surface));
ITexture texture = new ConicalGradientTexture(new Size(10, 10), rainbow);
allLeds.Brush = new TextureBrush(texture);
-
.NETFramework 4.5
- RGB.NET.Core (>= 0.0.1.78)
- System.ValueTuple (>= 4.4.0)
-
.NETStandard 2.0
- RGB.NET.Core (>= 0.0.1.78)
- .NETFramework 4.5: 4.5.0.0
- .NETStandard 2.0: 2.0.0.0
| Assembly | Assembly hash | Match |
|---|---|---|
| /lib/netstandard2.0/rgb.net.devices.corsair.dll | 642209a9ec3e4b23a720a15bddc36cf91 |
OwnersDarth Affe |
AuthorsDarth Affe |
Project URLhttps://github.com/DarthAffe/RGB.NET |
LicenseLGPL-2.1 |
Info223 total downloads |
| 12 downloads for version 0.0.1.78 |
| Download (66.89 KB) |
| Download legacy symbols (161.11 KB) |
| Found on the current feed only |
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
0.0.1.78 | 66.89 KB | Sat, 05 Jan 2019 12:00:51 GMT | 12 |
|
||
|
|
0.0.1.77 | 66.89 KB | Sat, 05 Jan 2019 10:27:51 GMT | 0 |
|
||
|
|
0.0.1.76 | 66.89 KB | Tue, 25 Dec 2018 22:12:12 GMT | 0 |
|
||
|
|
0.0.1.75 | 66.9 KB | Tue, 25 Dec 2018 17:59:29 GMT | 0 |
|
||
|
|
0.0.1.74 | 63.09 KB | Thu, 20 Dec 2018 13:47:05 GMT | 4 |
|
||
|
|
0.0.1.73 | 63.09 KB | Wed, 12 Dec 2018 21:44:41 GMT | 1 |
|
||
|
|
0.0.1.72 | 63.02 KB | Mon, 29 Oct 2018 19:04:01 GMT | 5 |
|
||
|
|
0.0.1.71 | 63.02 KB | Fri, 12 Oct 2018 20:48:51 GMT | 0 |
|
||
|
|
0.0.1.70 | 63.02 KB | Sat, 06 Oct 2018 08:40:29 GMT | 0 |
|
||
|
|
0.0.1.67 | 56.42 KB | Sun, 29 Jul 2018 12:43:38 GMT | 12 |
|
||
|
|
0.0.1.66 | 56.42 KB | Thu, 26 Jul 2018 19:48:44 GMT | 0 |
|
||
|
|
0.0.1.65 | 56.43 KB | Sun, 15 Jul 2018 15:28:58 GMT | 0 |
|
||
|
|
0.0.1.64 | 56.42 KB | Sun, 15 Jul 2018 15:08:14 GMT | 0 |
|
||
|
|
0.0.1.63 | 56.43 KB | Sat, 14 Jul 2018 13:54:34 GMT | 0 |
|
||
|
|
0.0.1.62 | 56.43 KB | Tue, 10 Jul 2018 19:01:00 GMT | 0 |
|
||
|
|
0.0.1.61 | 55.81 KB | Tue, 10 Jul 2018 18:07:44 GMT | 0 |
|
||
|
|
0.0.1.60 | 55.73 KB | Mon, 09 Jul 2018 19:51:45 GMT | 1 |
|
||
|
|
0.0.1.59 | 55.73 KB | Sun, 08 Jul 2018 18:19:27 GMT | 2 |
|
||
|
|
0.0.1.56 | 42.79 KB | Sun, 10 Jun 2018 15:22:30 GMT | 3 |
|
||
|
|
0.0.1.55 | 42.79 KB | Wed, 06 Jun 2018 18:48:11 GMT | 1 |
|
||
|
|
0.0.1.54 | 42.77 KB | Sun, 03 Jun 2018 08:27:51 GMT | 5 |
|
||
|
|
0.0.1.53 | 42.77 KB | Sun, 03 Jun 2018 08:04:14 GMT | 0 |
|
||
|
|
0.0.1.52 | 42.77 KB | Thu, 19 Apr 2018 18:09:55 GMT | 5 |
|
||
|
|
0.0.1.51 | 42.76 KB | Wed, 11 Apr 2018 16:18:18 GMT | 5 |
|
||
|
|
0.0.1.50 | 42.76 KB | Sun, 08 Apr 2018 09:59:24 GMT | 3 |
|
||
|
|
0.0.1.49 | 42.49 KB | Sat, 07 Apr 2018 08:47:51 GMT | 3 |
|
||
|
|
0.0.1.48 | 42.48 KB | Mon, 02 Apr 2018 08:18:54 GMT | 5 |
|
||
|
|
0.0.1.47 | 42.48 KB | Sun, 01 Apr 2018 22:00:31 GMT | 0 |
|
||
|
|
0.0.1.45 | 42.48 KB | Sun, 01 Apr 2018 21:04:02 GMT | 2 |
|
||
|
|
0.0.1.44 | 42.49 KB | Sun, 01 Apr 2018 20:14:34 GMT | 0 |
|
||
|
|
0.0.1.42 | 3.26 MB | Sun, 25 Mar 2018 15:53:58 GMT | 1 |
|
||
|
|
0.0.1.41 | 3.26 MB | Sun, 25 Mar 2018 13:55:15 GMT | 0 |
|
||
|
|
0.0.1.40 | 3.26 MB | Thu, 08 Mar 2018 19:23:57 GMT | 4 |
|
||
|
|
0.0.1.39 | 3.26 MB | Thu, 08 Mar 2018 18:44:48 GMT | 146 |
|
||
|
|
0.0.1-CI00009 | 3.26 MB | Sat, 09 Dec 2017 08:34:26 GMT | 1 |
|
||
|
|
0.0.1-CI00008 | 3.26 MB | Sat, 09 Dec 2017 08:24:21 GMT | 0 |
|
||
|
|
0.0.1-CI00007 | 3.26 MB | Thu, 07 Dec 2017 20:42:48 GMT | 1 |
|
||
|
|
0.0.1-CI00006 | 3.26 MB | Thu, 07 Dec 2017 18:28:31 GMT | 0 |
|
||
|
|
0.0.1-CI00005 | 3.26 MB | Thu, 07 Dec 2017 12:39:07 GMT | 1 |
|