public Task SetLedState(IDeviceLed deviceLed, DeviceLedState ledState)
        {
            McLedState xTouchLedState = AsMcLedState(ledState);

            return(Task.Run(() => base.SetButtonLed(XTouchMiniMcButton.Controls[(byte)deviceLed.Id], xTouchLedState)));
        }
 private static McLedState AsMcLedState(DeviceLedState ledState) => ledState switch
 {
Exemple #3
0
 public Task SetLedState(IDeviceLed deviceLed, DeviceLedState ledState) => throw new NotSupportedException();