hello

main.cpp

Committer:
zackeymon
Date:
2018-01-25
Revision:
0:903b088ceb3e
Child:
1:48f2481a3715

File content as of revision 0:903b088ceb3e:

#include "mbed.h"

// define the Serial object
Serial pc(USBTX, USBRX);

DigitalOut led1(LED1);

int main() {
    while (true) {
        led1 = !led1;

        // Print something over the serial connection
        pc.printf("Blink! LED is now %d\r\n", led1.read());

        wait(0.5);
    }
}