I am working on a project to make a Netduino Plus 2 control the drive hydraulics on a small tractor and I stumbled over some trouble using the PWM class. In the simple example below I have marked in bold where the compiler does not recognize the PWM class.
I have noticed that the list of usings contains the NetduinoPlus using where as all the code examples I have seen on-line all use the ..Netduino; using.
I hope that some body can find a moment to comment on this - thank you.
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
namespace RGB_Led
{
public class Program
{
public static void Main()
{
PWM redLed = new PWM(PWMChannels.PWM_PIN_D9, 200, 60, false);
redLed.DutyCycle = 60;
Thread.Sleep(Timeout.Infinite);
}
}
}