public bool Update(LEDColor color, int blinkCount = 0) { if (blinkCount < 0) { throw new ArgumentOutOfRangeException("blinkCount", blinkCount, "0 <= blinkCount"); } var success = LED.led_request_color(id, color, blinkCount) == BPS.BPS_SUCCESS; if (success) { Color = color; ContinuousBlinking = blinkCount == 0; BlinkCount = blinkCount; } return(success); }
public bool Cancel() { return(LED.led_cancel(id) == BPS.BPS_SUCCESS); }