Hey guys,
I just got a Netduino and so far it is AMAZING! However, I am running into one problem that is really buggin me. When I'm trying to regulate the speed of my motor using a PWM pin, its giving me the following error.
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in SecretLabs.NETMF.Hardware.dll
Here is the code I'm using:
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace NetduinoApplication1 { public class Program { public static void Main() { PWM x = new PWM(Pins.GPIO_PIN_D0); x.SetDutyCycle(50); x.Dispose(); } } }