Trying to setup a typical AnalonInput and am getting an error in compiling. I pulled this code off of a few other posts here - with others using it just fine. For mine it’s saying that it’s not the right constructors? Should be something simple I’m missing. ?
namespace FrontDoorModule
{
public partial class Program
{
private GT.Timer _pollingTimer;
private AnalogInput analogInput;
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
Debug.Print("Program Started");
Socket socket = Gadgeteer.Socket.GetSocket(3, true, null, null);
analogInput = new AnalogInput(socket, Socket.Pin.Three, null); //here's the problem line
// Microsoft.SPOT.Hardware.AnalogInput does not contain a constructor
}
}
}