Provides access to Qwerk's on-board LEDs.

Namespace:  AForge.Robotics.TeRK
Assembly:  AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.3.0 (2.2.3.0)

Syntax

C#
public class Leds

Remarks

The class allows to manipulate Qwerk's on-boar LED's. The total number of available on-board LEDs equals to Count.

Sample usage:

CopyC#
// get Qwerk's LEDs service
Qwerk.Leds leds = qwerk.GetLedsService( );
// turn off all LEDs
leds.SetLedsState( Qwerk.LedState.Off );
// set zero LED to blinking state
leds.SetLedState( 0, Qwerk.LedState.Blinking );
// turn on 4th and 5th LEDs
bool[] mask = new bool[10] {
    false, false, false, false, true,
    true, false, false, false, false };
Qwerk.LedState[] states = new Qwerk.LedState[10] {
    Qwerk.LedState.Off, Qwerk.LedState.Off, Qwerk.LedState.Off,
    Qwerk.LedState.Off, Qwerk.LedState.On,  Qwerk.LedState.On,
    Qwerk.LedState.Off, Qwerk.LedState.Off, Qwerk.LedState.Off,
    Qwerk.LedState.Off };
leds.SetLedsState( mask, states );

Inheritance Hierarchy

System..::.Object
  AForge.Robotics.TeRK..::.Qwerk..::.Leds

See Also