public T GetConfig <T>() where T : SLSConfigData { MadLedDevice.MadLedConfig data = this.config; SLSConfigData proxy = data; return((T)proxy); }
public void Configure(DriverDetails driverDetails) { config = new MadLedDevice.MadLedConfig(); config.PinConfigs = new MadLedDevice.PinConfig[8]; var connected = SimpleLed.SLSManager.GetSupportedDevices(SupportedDevices); foreach (USBDevice supportedDevice in connected) { InterestedUSBChange(supportedDevice.VID, supportedDevice.HID.Value, true); } }
public void PutConfig <T>(T config) where T : SLSConfigData { this.config = config as MadLedDevice.MadLedConfig; }