using System; using System.IO.Ports; namespace SerialComm { class SerialOut { static void Main () { SerialPort com1 = new SerialPort( "COM12", 9600, Parity.None, 8, StopBits.One ); com1.Open (); do { com1.WriteLine ( "Hello World!!!" ); } while (!Console.KeyAvailable); com1.Close (); } } }