I have been playing around with a Netduino 2 for the past few days without encountering any problems, until I tried PWM.
In VS C# 2010 Express, I type: PWM pwm = new PWM(Pins.GPIO_PIN_D5); and get this error :
'Microsoft.SPOT.Hardware.PWM' does not contain a constructor that takes 1 argument"
So I tried VS Visual Basic 2010 Express, and typed: Dim led1 As PWM = New PWM(Pins.GPIO_PIN_D5)
and get this error: Overload resolution failed because no accessible 'New' accepts this number of arguments.
In all the examples I've seen, New PWM only takes one argument - the GPIO pin. Does any one know what I am missing or what's going on here?