blink

Dependencies:   mbed

Fork of Nucleo_blink_led by adam zhang

main.cpp

Committer:
adam_z
Date:
2016-01-12
Branch:
haha
Revision:
3:7a8d2ee1234f
Parent:
1:a91c7a3d9689
Child:
4:3b5430197cf3

File content as of revision 3:7a8d2ee1234f:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.11); // 200 ms
        myled = 0; // LED is OFF
        wait(0.11); // 1 sec
        wait(0.111);
        //branch
    }
}