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);
     }
 }
Пример #3
0
        public bool SetLED64FlashSpeed(int id, int port, FlashSpeed flashSpeed)
        {
			return (m_mode64 ? Pac64SetLEDFlashSpeed64(id, port, (byte)flashSpeed) : Pac64SetLEDFlashSpeed32(id, port, (byte)flashSpeed));
        }
Пример #4
0
 public bool SetLED64FlashSpeeds(int id, FlashSpeed flashSpeed)
 {
     return (m_mode64 ? Pac64SetLEDFlashSpeeds64(id, (byte)flashSpeed) : Pac64SetLEDFlashSpeeds32(id, (byte)flashSpeed));
 }
Пример #5
0
 public bool PacLed64SetLEDFlashSpeed(int Index, int Port, FlashSpeed FlashSpeed)
 {
     return Pac64SetLEDFlashSpeed(Index, Port, (byte)FlashSpeed);
 }
Пример #6
0
 public bool PacLed64SetLEDFlashSpeeds(int Index, FlashSpeed FlashSpeed)
 {
     return Pac64SetLEDFlashSpeeds(Index, (byte)FlashSpeed);
 }
Пример #7
0
 public bool PacLed64SetLEDFlashSpeed(int Index, int Port, FlashSpeed FlashSpeed)
 {
     return(Pac64SetLEDFlashSpeed(Index, Port, (byte)FlashSpeed));
 }
Пример #8
0
 public bool PacLed64SetLEDFlashSpeeds(int Index, FlashSpeed FlashSpeed)
 {
     return(Pac64SetLEDFlashSpeeds(Index, (byte)FlashSpeed));
 }