Exemplo n.º 1
0
        public T GetConfig <T>() where T : SLSConfigData
        {
            MadLedDevice.MadLedConfig data  = this.config;
            SLSConfigData             proxy = data;

            return((T)proxy);
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public void PutConfig <T>(T config) where T : SLSConfigData
 {
     this.config = config as MadLedDevice.MadLedConfig;
 }