コード例 #1
0
        public static void Main()
        {
            CommPort port = new CommPort(SerialPorts.COM1, BaudRate.Baudrate9600, Parity.None, 8, StopBits.One);

            while (true)
            {
                string text = port.ReadLine();
                if (text.Length != 0)
                {
                    // print the command sent to the NETduino
                    Debug.Print("Command: " + text);
                }
                Thread.Sleep(1000);
            }
        }