9 years, 11 months ago.

how to set led diode on mbed LPC11U24

hlllllllllll

2 Answers

9 years, 11 months ago.

The 4 internal LEDs can be accessed like so:

DigitalOut myLED(LED1);

Then can be turned on by doing myLED = 1; and turned off by doing myLED = 0;

If you want to use your own LED component, you can connect it up between one of the I/O pins and GND, then define it like this:

DigitalOut myLED(p10);

The LED can be turned on/off in the same way as before, with myLED = 1; and myLED = 0;.

thank you

posted by r1a r1a 12 May 2014
9 years, 11 months ago.

Refer this link

https://mbed.org/handbook/DigitalOut