WildernessLabs / Netduino_SDK

32 stars 21 forks source link

Netduino 3 Wifi can not set Precision of Analog Input #21

Open crobru opened 6 years ago

crobru commented 6 years ago

Assembly SecretLabs.NETMF.Hardware.Netduino, Version=4.3.1.0 Exception: 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll Using the above assembly for Netduino 3 Wifi builds fine but generates an exception when you instantiate new AnalogInput with the precision set to other than the default 12 bits. The following program fails.

`using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware.Netduino;

namespace AnalogPortPrecision { public class Program { public static void Main() { AnalogInput a0 = new AnalogInput(AnalogChannels.ANALOG_PIN_A0, 3.3, 0.0, 11); } } } `