Main Site Documentation

Is it broken? New Hydra?


#1

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.


#2

Click reply and see #1 note. It is probably that. P


#3

Figured it out it was the firmware!

D’oh!