Provides access to Qwerk's on-board LEDs.

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

Sample usage:

// 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 );
コード例 #1
0
 /// <summary>
 /// Get Qwerk's LEDs service.
 /// </summary>
 ///
 /// <returns>Returns Qwerk's LEDs service.</returns>
 ///
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Leds(Qwerk)"/>.</remarks>
 ///
 public Qwerk.Leds GetLedsService( )
 {
     if (leds == null)
     {
         leds = new Leds(this);
     }
     return(leds);
 }
コード例 #2
0
ファイル: Qwerk.cs プロジェクト: nagyistoce/Neuroflow
 /// <summary>
 /// Get Qwerk's LEDs service.
 /// </summary>
 /// 
 /// <returns>Returns Qwerk's LEDs service.</returns>
 /// 
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.Leds(Qwerk)"/>.</remarks>
 /// 
 public Qwerk.Leds GetLedsService( )
 {
     if ( leds == null )
     {
         leds = new Leds( this );
     }
     return leds;
 }