10 years, 4 months ago.

How driving LED on an other board ?

Hello, sorry for my question. I have two boards - mbed LPC1768 and one noname board with LPC1768. I have a trouble with second board. I cannot driving LED on p3_25. Could you help me ?

#include "mbed.h"

#define DK_LED1     p3_25

DigitalOut LED(DK_LED1);

int main () {
    while (1) {
        LED = 1;
        wait(0.5);
        LED = 0;
        wait(0.5);
        }
       } 

1 Answer

10 years, 4 months ago.

Pinnames should be declared as P3_25 rather than p3_25. Make sure you have series resistors between the LED, powersupply and the lpc1768 portpin.

Accepted Answer

You are right. The problem was solved. Thanks a lot.

posted by Peter Augustin 16 Jul 2014