program.cs

来自「老外的一个开源项目」· CS 代码 · 共 32 行

CS
32
字号
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org

using System;
using System.IO;
using System.IO.Ports;
using System.Collections.Generic;
using System.Text;

namespace STUartTest
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("Hello world from Visual Studio 2005!");
            SerialPort sp = new SerialPort("COM1", 115200, Parity.None, 8, StopBits.One);
            try
            {
                sp.Open();
                sp.WriteLine("Hello from the Gumstix STUart com port!\r");
            }
            finally
            {
                sp.Close();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?