using RGB.NET.Core; namespace RGB.NET.Devices.Asus; /// /// /// Represents a Asus mainboard. /// public sealed class AsusMainboardRGBDevice : AsusRGBDevice, IMainboard { #region Constructors /// /// /// Initializes a new instance of the class. /// /// The specific information provided by Asus for the mainboard. /// The update trigger used to update this device. internal AsusMainboardRGBDevice(AsusRGBDeviceInfo info, IDeviceUpdateTrigger updateTrigger) : base(info, updateTrigger) { InitializeLayout(); } #endregion #region Methods private void InitializeLayout() { int ledCount = DeviceInfo.Device.Lights.Count; for (int i = 0; i < ledCount; i++) AddLed(LedId.Mainboard1 + i, new Point(i * 40, 0), new Size(40, 8)); } /// protected override object? GetLedCustomData(LedId ledId) => (int)ledId - (int)LedId.Mainboard1; #endregion }