示例#1
0
 public void TurnRed()
 {
     if (!isConnected) { if (!Connect()) return; }
     currentColor = new LinkLampConfiguration.Color
         {
             Red = 255,
             Blue = 0,
             Green = 0
         };
     ChangeColor();
 }
示例#2
0
 public void TurnYellow()
 {
     if (!isConnected) { if (!Connect()) return; }
     currentColor = new LinkLampConfiguration.Color
         {
             Red = 255,
             Blue = 0,
             Green = 255
         };
     busylight.Light(currentColor);
 }
示例#3
0
 private void TurnOff()
 {
     if (!isConnected) { if (!Connect()) return; }
     currentColor = new LinkLampConfiguration.Color
         {
             Red = 0,
             Blue = 0,
             Green = 0
         };
     ChangeColor();
 }