예제 #1
0
        private void _slider_ValueChanged(object sender, EventArgs <float> e)
        {
            float value     = e.Data;
            int   cycleTime = (int)(MinCycleTime * Math.Pow(Base, Alpha * value)); // it gives cycleTime in range [minTime; maxTime] for value in range [0; 1]

            _photonLedControllerCommunicator.WriteCycleTime(cycleTime);
            _photonLedControllerCommunicator.ReadCycleTime();
        }