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

PulseDebugLed() public method

�f�o�b�OLED��1��_�ł���
public PulseDebugLed ( ) : void
return void
        public void PulseDebugLed()
        {
            _debugLed.PulseDebugLed();
        }

Same methods

Peach::PulseDebugLed ( int length, int times ) : void

Usage Example

        public static void Main()
        {
            var peach = new Peach();

            var ipAddress = NetworkUtility.InitNetwork();
            if (ipAddress == "0.0.0.0")
            {
                Debug.Print("InitNetwork Failed");
                return;
            }

            using (var request = WebRequest.Create(new Uri("http://www.microsoft.com/ja-jp")) as HttpWebRequest)
            {
                request.Method = "GET";

                using (var response = request.GetResponse() as HttpWebResponse)
                {
                    if (response.StatusCode == HttpStatusCode.OK)
                    {
                        var resContentBytes = new byte[(int)response.ContentLength];
                        using (var ress = response.GetResponseStream())
                        {
                            ress.Read(resContentBytes, 0, (int)response.ContentLength);
                            var resContentChars = Encoding.UTF8.GetChars(resContentBytes);
                            var resContent = new string(resContentChars);
                            Debug.Print(resContent);
                        }

                        peach.PulseDebugLed(100, 5);
                    }
                }
            }

            Thread.Sleep(3000);
        }