Main Site Documentation

No PWM enumeration value for LED output on a FEZ Panda?


#1

In the beginner’s guide (and I’m truly a beginner), it shows how to specify which PWM port to use when creating an instance of the PWM class. In the example, they use the on-board LED. But in Visual Studio, I don’t see ‘LED’ as a valid enumeration value. Below is a screenshot of what I see in Object Explorer. You can see there are only 6 PWM ports and the LED output is not one of them. Can someone explain to me how to utilize the PWM capability of the LED output?


#2

That example is for Domino. On Domino LED is connected to PWM capable pin on controller.
If you want to try PWM-LED with Panda you will need to hook up an external led and resistor to a PWM pin on Panda.


#3

Good point, I updated the wiki http://www.microframeworkprojects.com/index.php?title=C-Sharp_Level2#Pulse_Width_Modulation


#4

Just wanted to make sure I wasn’t missing something. Thanks for the reply!