Want to define Instance of “SerialPort” in Fez Mini (as show on the back page of Mini datasheet, as follows, has error message: (All other statements appear OK)
.netmf Code in VC# 2008:
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.IO.Ports;
using Microsoft.SPOT;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware.LowLevel;
namespace SerialPortLoopBack
{
public class Program
{
public static void Main()
{
SerialPort UART = new SerialPort(“COM3”, 9600);
etc…
“System” is in the Project’ s References, which in MSDN .NET Framework Class Library states contains
Namespace: System.IO.Ports.SerialPort
Assembly: System (in System.dll).
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.IO.Ports;
using Microsoft.SPOT;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware.LowLevel;
using System.IO.Ports.SerialPort; //add this
namespace SerialPortLoopBack
{
public class Program
{
public static void Main()
{
SerialPort UART = new SerialPort("COM3", 9600);