Initialize SerialPorts in .Net microFramework

using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Supplier.NETMF.Hardware;
using Supplier.NETMF.Hardware.BoardModel;
using System.IO.Ports;
 
namespace Application1
{
    public class Program
    {
        static SerialPort MyCom; 
        public static void Main()
        {
            // 'Ports' name reference may be different for each manufacturer
            MyCom = new SerialPort(Ports.COM1,9600);
            while (true)
            {
                // Main loop
	       // write your code here
            }
        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>