private static void SetCallStatus(BlynclightController controller, FlashSpeed flashSpeed) { for (var i = 0; i < controller.aoDevInfo.Length; i++) { controller.TurnOnRedLight(i); controller.ClearLightDim(i); SetFlashspeed(controller, i, flashSpeed); } }
private static void SetFlashspeed(BlynclightController controller, int deviceIndex, FlashSpeed flashSpeed) { if (flashSpeed == FlashSpeed.None) { controller.StopLightFlash(deviceIndex); } else { controller.SelectLightFlashSpeed(deviceIndex, (byte)(flashSpeed + 1)); controller.StartLightFlash(deviceIndex); } }
public bool SetLED64FlashSpeed(int id, int port, FlashSpeed flashSpeed) { return (m_mode64 ? Pac64SetLEDFlashSpeed64(id, port, (byte)flashSpeed) : Pac64SetLEDFlashSpeed32(id, port, (byte)flashSpeed)); }
public bool SetLED64FlashSpeeds(int id, FlashSpeed flashSpeed) { return (m_mode64 ? Pac64SetLEDFlashSpeeds64(id, (byte)flashSpeed) : Pac64SetLEDFlashSpeeds32(id, (byte)flashSpeed)); }
public bool PacLed64SetLEDFlashSpeed(int Index, int Port, FlashSpeed FlashSpeed) { return Pac64SetLEDFlashSpeed(Index, Port, (byte)FlashSpeed); }
public bool PacLed64SetLEDFlashSpeeds(int Index, FlashSpeed FlashSpeed) { return Pac64SetLEDFlashSpeeds(Index, (byte)FlashSpeed); }
public bool PacLed64SetLEDFlashSpeed(int Index, int Port, FlashSpeed FlashSpeed) { return(Pac64SetLEDFlashSpeed(Index, Port, (byte)FlashSpeed)); }
public bool PacLed64SetLEDFlashSpeeds(int Index, FlashSpeed FlashSpeed) { return(Pac64SetLEDFlashSpeeds(Index, (byte)FlashSpeed)); }