9 years, 3 months ago.

LED Port

why do we add DigitalOut led(LED_RED) if we have already given D0 pin as LED

Question relating to:

gpio example for the Freescale freedom platform Freedom, Freescale, GPIO

Hi, I'm finding the output for the external LED, the voltage is not high at all, Very dim. Anything I can do to increase this output to the 5V ? It's only 3.3V if I'm not mistaken...

posted by Sanjeev Nahulanthran 05 Dec 2015

1 Answer

9 years, 3 months ago.

One would be an external LED (connected to D0), other one would be LED of the board. If you just want to blink that one you don't need the D0 DigitalOut. If you just want to blink an external one you don't need the LED_RED DigitalOut.

Accepted Answer

Thank you Sir

So there are two separate LEDs one on broad LED and one External that we may connect ??

posted by Sarin CR 20 Jan 2015

For that specific code yes. You may connect as many as you want pretty much, but then you need to toggle also more pins.

posted by Erik - 20 Jan 2015