Exemplo n.º 1
0
 /// <summary>
 /// Resets the led back to color green
 /// </summary>
 /// <returns></returns>
 public async Task Reset()
 {
     if (Mode != LedMode.Green)
     {
         Mode = LedMode.Green;
         await UIWriteMethods.Led(Brick.Socket, Mode);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Change the current led mode.
 /// </summary>
 /// <param name="mode">the mode to change led to</param>
 public async void SetValue(LedMode mode)
 {
     Mode = mode;
     await UIWriteMethods.Led(Brick.Socket, mode);
 }