I would like to create two synchronized PWM’s with a fixed offset on Panda III:
static PWM Pwm1 = new PWM(FEZPandaIII.PwmOutput.D9, 5000, 110, PWM.ScaleFactor.Microseconds, false); static PWM Pwm2 = new PWM(FEZPandaIII.PwmOutput.D6, 5000, 110, PWM.ScaleFactor.Microseconds, false);
and in Main:
InterruptPort Pwm1Int = new InterruptPort(FEZPandaIII.Gpio.D9, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh); Pwm1Int.OnInterrupt += StartPwm2;
However, there is always an exception thrown by Microsoft.SPOT.Hardware.dll and the Start_Pwm2 never gets called.
Is this a Panda defect?