LED test fork

Dependencies:   mbed

Fork of led_test by Der Praktikant

main.cpp

Committer:
Praktikant
Date:
2016-04-08
Revision:
1:1d60dc3c3b08
Parent:
0:fb66e57f89c4
Child:
2:e0a2da2e3ce7

File content as of revision 1:1d60dc3c3b08:

#include "mbed.h"

DigitalOut myled(LED1);
DigitalOut myled2(LED2);

int main() {
    while(1) {
        myled = 1; // LED is ON
        myled2 = 0; 
        wait(0.5); 
        myled = 0; // LED is OFF
        myled2 = 1; 
        wait(0.5); // 1 sec
    }
}