GrFamily.MainBoard.Peach.SetDebugLed C# (CSharp) Method

SetDebugLed() public method

�f�o�b�OLED��_���܂��͏�������
public SetDebugLed ( bool lightOn ) : void
lightOn bool �_������ꍇ�� true�A��������ꍇ�� false
return void
        public void SetDebugLed(bool lightOn)
        {
            _debugLed.SetLed(lightOn);
        }

Usage Example

        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);
            }
        }