DigitalOut led(1);

03 Jan 2010

DigitalOut led(1);

How do I use this  ?

1-4 now map to LED1-LED4, so you can just do "DigitalOut led(1);" now 

The above line is from this page :

http://mbed.org/blog/?page=3&tags=%2Cupdates

I tried and got error.

thanks.

03 Jan 2010 . Edited: 03 Jan 2010

The syntax is DigitalOut myled(LED1);

So for pins use p1,p2,p3,p4 and for LEDs use LED1,LED2,LED3,LED4

Hope that helps

At the bottom of that page you looked at, it stated that the syntax was changed from led(1,led) to led(LED1)