private void Awake() { ShowtecLLB8.Init(); AllGreen(); SetMasterFader(100); dmxSignalIntervalSeconds = regularIntervalSeconds; }
public void SetStroboscope(bool active) { dmxSignalIntervalSeconds = active ? strobeIntervalSeconds : regularIntervalSeconds; ResetCounter(); byte value = active ? (byte)strobeVal : (byte)0; ShowtecLLB8.SetStroboscope(value, true); }
private void Update() { count += Time.deltaTime; if (count >= dmxSignalIntervalSeconds && active) { ResetCounter(); if (masterFaderControlActive) { SetMasterFader((byte)masterFaderVal); } else { ShowtecLLB8.SendData(); } } }
public void AllRed() { ShowtecLLB8.SetAllSingleColor(ShowtecLLB8.RGB.RED, 255, false); ShowtecLLB8.SetMasterFader(255, true); ResetCounter(); }
/// <summary> /// Receives value between 0-255 /// Turn on section depending on the value /// </summary> /// <param name="active"></param> public void SetKnightRiderEffect(byte value) { ShowtecLLB8.SetKnightRiderEffect(value); }
public void SetMasterFader(byte value) { ResetCounter(); ShowtecLLB8.SetMasterFader(value, true); }
public void AllOff() { ShowtecLLB8.SetAllOff(true); ResetCounter(); }
public void AllGreen() { ShowtecLLB8.SetAllSingleColor(ShowtecLLB8.RGB.GREEN, 255, false); ShowtecLLB8.SetMasterFader(255, true); ResetCounter(); }