Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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;.