Hello!
I just bought a Hydra and I took it out of the box. I installed the gadgeteer library and ran the following code:
using Microsoft.SPOT;
using System.Threading;
using GHIElectronics.OSH.NETMF.Hardware; // <<< This is the only needed change
public class Program
{
public static void Main()
{
AnalogIn ain = new AnalogIn(AnalogIn.Pin.Ain0);
while (true)
{
Debug.Print("Ain0 = " + ain.Read());
}
}
}
I then loaded it and .net did not give me an error. It just opened and closed immediately. I guess it should have run the analog values in a loop. Any ideas what I am doing wrong.