Main Site Documentation

Exception in PWM


#1

Hi Guys,

Mine is the FEZ Panda. When I create new PWM I receive NotSupportedException, Anybody knows ?

using System;
using System.Threading;

using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;

using GHIElectronics.NETMF.FEZ;

using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace FEZPWMTester
{
    public class Program
    {
        public static void Main()
        {
            PWM PWM10 = new PWM(Pins.GPIO_PIN_D10);

            PWM10.SetDutyCycle(100);
        }

    }
}

Thank you in advance.


#2

If you’re working with the Panda, you should be using the GHIElectronics.Hardware assembly, not the one for Netduino.


#3

Our free ebook has examples for about everything http://www.tinyclr.com/downloads/Beginners%20guide%20to%20NETMF.pdf