NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » Multiple blinking LEDs

October 23, 2010
by mmw1
mmw1's Avatar

I have the led_blink.c project completed. I decided to blink two LEDs using PC4 and PC3. Works great. However the other pins (PC5, PC2, PC1, and PC0) will not blink an LED. Can anyone tell me why?

October 23, 2010
by Rick_S
Rick_S's Avatar

Did you set them as outputs? If you don't post your code, it's difficult to help.

Rick

October 23, 2010
by mmw1
mmw1's Avatar

Rick,

Thanks. That was the problem! I forgot to set them as outputs.

Mike

Post a Reply

Please log in to post a reply.

Did you know that the printf format string "%.3f" will show three digits after the decimal point? Learn more...