I have a simple project that uses PWM to dim and brighten the on-board LED.
public class Program { public static void Main() { PWM led1 = new PWM(PWMChannels.PWM_ONBOARD_LED, 100d, 0.001d, false); led1.Start(); while (true) { for (var startValue = 4.712d; startValue < 10.995; startValue = startValue + 0.005) { double endValue = System.Math.Sin(startValue) * .5 + .5; led1.DutyCycle = endValue; Thread.Sleep(10); } } } }
This works as expected only if I don't reference the Microsoft.SPOT.Wireless.IEEE_802_15_4 assembly.
If I do reference this assembly then the PWM doesn't work. Just to be clear, I don't make any code changes. I simply add the assembly reference.
Has anyone else experienced this? Or could someone try this on their end to see if they get the same behavior ?