Hi All -
I just received my Netduino Plus 2 and have been able to get several things working in the projects listed in the "Getting Started with Netduino" book. It seems that several of the functions/classes that are associated with don't exist.
For example, I'm trying to use a servo. I did the following:
PWM servo = new Microsoft.SPOT.Hardware.PWM(Pins.GPIO_PIN_D5); uint firstPosition = 1000; uint lastPosition = 2000; for (uint currentPosition = firstPosition; currentPosition <= lastPosition; lastPosition += 10) { }
but when I go inside of the for loop and try to put in servo.SetPulse(20000,currentPosition); SetPulse does not show up as an option in the dropdown. I get an error on declaring the servo variable with Pins.GPIO_PIN_D5, so I've also tried adding 100, 100, false and I've also tried replacing it entirely with SecretLabs.NETMF.Hardware.Netduino.PWMChannels.PWM_PIN_D5,100,100,false
Asside from the example above I've also had issues with the function SetDutyCycle for controlling the color of LED's and instead had to set the property directly.
Am I just missing something completely obvious or is it that this book is out of date or???
Any help would be appreciated!
Thanks -Nick