Pinguino Forum

Full Version: analogWrite fade LED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a beginner, so please bear with me.

Tried this program on the PIC18F45K50, Pinguino IDE 12.0.41-beta2, bootloader 4.14:

http://www.pinguino.cc/wiki/index.php?title=AnalogWrite

I connected an external LED kathode (1.8mA/2.2V drop, with 1500 ohms resistance) to pin 10 or 11, trying both 10 or 11 as ledPin, and the anode to "+" (5v) on the same side of the board. The result is that the LED glows with full brightness only. 

Do I need to wire it differently?
I see 17 and 18 are labeled PWM, so I presume that's the ones I should use? They don't seem to be working either, though;

pin 17/18 -> led anode, led cathode -> ground

is there some special trick here?
I changed the MCU chip, and now it works. So I guess I fried the other one at some point. Sorry for the noise.