Embedded system Fun Blog
























































Find out all the best information, libraries and circuit about the latest Embedded systems.

Saturday 7 January 2012

MBED Example: How to use DigitalOut to Toggle a LED

.from: http://mbed.org/projects/libraries/svn/mbed/trunk/DigitalOut.h

// Toggle a LED
#include "mbed.h"

DigitalOut led(LED1);

int main() {
        while(1) {
        led = !led;
        wait(0.2);
    }
}

No comments:

Post a Comment