public SetDebugLed ( bool lightOn ) : void | ||
lightOn | bool | �_������ꍇ�� true�A��������ꍇ�� false |
return | void |
public void SetDebugLed(bool lightOn)
{
_debugLed.SetLed(lightOn);
}
public static void Main() { _peach = new Peach(); while (true) { if (_peach.Button.IsPressed) { _peach.SetDebugLed(true); Debug.Print("Button Pressed"); } else { _peach.SetDebugLed(false); Debug.Print("Button Released"); } Thread.Sleep(200); } }