AForge.Robotics.TeRK.Qwerk.Leds.SetLedsState C# (CSharp) Метод

SetLedsState() публичный Метод

Set state of all LEDs.

The method sets the same state to all Qwerk's on-board LEDs.

No connection to Qwerk or its service. Connestion to Qwerk is lost.
public SetLedsState ( LedState state ) : void
state LedState State, which will be set to all LEDs.
Результат void
            public void SetLedsState( LedState state )
            {
                bool[] ledsMask = new bool[Count];
                LedState[] states = new LedState[Count];

                for ( int i = 0; i < Count; i++ )
                {
                    ledsMask[i] = true;
                    states[i] = state;
                }

                SetLedsState( ledsMask, states );
            }

Same methods

Qwerk.Leds::SetLedsState ( bool ledsMask, LedState states ) : void