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 } } } }