Base project for FRDM K64F: - Blinking LED - USB Serial Port #aiot

Dependencies:   mbed

Fork of mbed_blinky by Mbed

main.cpp

Committer:
rlinnmoran
Date:
2015-03-24
Revision:
7:0589e594768c
Parent:
4:81cea7a352b0

File content as of revision 7:0589e594768c:

#include "mbed.h"

DigitalOut myled(LED1);
Serial pc(USBTX, USBRX);

int main() {
    
     pc.baud(9600);
    
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
        
        wait(0.1);
        pc.printf("The quick brown fox jumps over the lazy dog. 1234567890.\r\n");
    }
}