Essai sur les Led

Dependencies:   mbed

main.cpp

Committer:
Mbochud
Date:
2014-06-20
Revision:
1:2ba669406814
Parent:
0:03ee02521233

File content as of revision 1:2ba669406814:

#include "mbed.h"

DigitalOut myled1(LED1);
DigitalOut myled2(LED2);

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