hello

Fork of DigitalOut_HelloWorld by mbed official

main.cpp

Committer:
Anythingconnected
Date:
2017-12-21
Revision:
3:f43b72de9484
Parent:
2:214e43d39085

File content as of revision 3:f43b72de9484:

#include <mbed.h>

//Define digital outputs
DigitalOut LED = p0;
DigitalOut VIBR = p1;

int main() {
    while (true) {
        LED = 1;
        VIBR = 1;
        wait(0.2);
        VIBR = !VIBR;
        wait(0.2); 
        VIBR = !VIBR;
        wait(0.2);
        LED = !LED;
        VIBR = !VIBR;
        wait(2);
    }
}