I’m just getting started with my first .NETMF project and to be honest I’m finding it a bit frustrating. Granted, it’s only been 24 hours and I probably should have kept things simpler than I did to begin with. I have been programming full .NET applications of all kinds for many years, but the embedded hardware world is very new to me. Anyway, I have put the more complex stuff like Wifi and synchronizing time with an NTP server (both of which worked intermittently) on the back burner so I can get the basics under control. Even that is proving to be frustrating because it seems that most of the code samples/demos I have come across don’t actually work or are missing information.
For example, the beginner’s guide states “All FEZ boards have a LED connected to a digital pin”. I have a FEZ Cobra 2 and it has an LED labeled “LED1” next to the full size host USB port so I’m assuming I can do something with that. The documentation goes on to give the following code example…
using System;
using Microsoft.SPOT;
using System.Threading;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
namespace MFConsoleApplication1
{
public class Program
{
public static void Main()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, true);
Thread.Sleep(Timeout.Infinite);
}
}
}
Unfortunately, the “GHIElectronics.NETMF.FEZ” namespace does not exist anymore or I’m too clueless to find it (quite possible). I have looked through various libraries, documentation, and code samples and I just can’t find any reference to the onboard LED or even which pin it is mapped to on my hardware. Am I missing something obvious? It really doesn’t get any easier than this example and yet so far I have failed to get even this basic functionality working.