mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using RGB.NET.Core;
|
|
|
|
namespace RGB.NET.Devices.PicoPi
|
|
{
|
|
public class PicoPiRGBDeviceInfo : IRGBDeviceInfo
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public RGBDeviceType DeviceType { get; }
|
|
public string DeviceName { get; }
|
|
public string Manufacturer => "RGB.NET";
|
|
public string Model { get; }
|
|
public object? LayoutMetadata { get; set; }
|
|
|
|
public string Id { get; }
|
|
public int Version { get; }
|
|
public int Channel { get; }
|
|
public int LedCount { get; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
internal PicoPiRGBDeviceInfo(RGBDeviceType deviceType, string model, string id, int version, int channel, int ledCount)
|
|
{
|
|
this.DeviceType = deviceType;
|
|
this.Model = model;
|
|
this.Id = id;
|
|
this.Version = version;
|
|
this.Channel = channel;
|
|
this.LedCount = ledCount;
|
|
|
|
DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, $"{Model} {id} (Channel {channel})");
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|