Received the PandaII today. Installed software per instructions at Support – GHI Electronics
Compiled and ran the “Hello World” program and seemed to work as LED stopped flashing and could see the “Hello World” in the Debugger Output pane.
Now moved on to the LED flashing program and am stumped at where the type OutputPort is defined.
This is my code so far but it is failing to compile because does not find the type or namespace ‘OutputPort’ or ‘Cpu’. So I am missing a reference but can’t figure out which one to add.
I have following references added to the project:
FEZPanda_II_GHIElectronics.NETMF.FEZ
GHIElectronics.NETMF.System
Microsoft.SPOT.Native
mscorlib
and this is the code:
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.System;
using System.Threading;
namespace MFConsoleApplication1
{
public class Program
{
public static void Main()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, true);
}
}
}