gj

Dependencies:   mbed

main.cpp

Committer:
omarlin
Date:
2015-10-02
Revision:
0:0a756c4e57de

File content as of revision 0:0a756c4e57de:

#include "mbed.h"

DigitalOut gpo(D0);
DigitalOut led(LED_RED);

int main()
{
    while (true) {
        gpo = !gpo; // toggle pin
        led = !led; // toggle led
        wait(0.2f);
    }
}