blink

Dependencies:   mbed

Fork of Nucleo_blink_led by adam zhang

main.cpp

Committer:
adam_z
Date:
2016-01-12
Branch:
branchx
Revision:
5:7aa0363c127e
Parent:
4:3b5430197cf3
Child:
6:f6582d23f121

File content as of revision 5:7aa0363c127e:

#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);
        //branchx
    }
}