Dependencies:   USBDevice mbed

main.cpp

Committer:
jwillner
Date:
2012-07-03
Revision:
0:2affa067e73c

File content as of revision 0:2affa067e73c:

#include "mbed.h"
#include "USBSerial.h"

//Virtual serial port over USB
USBSerial serial;

int main(void) {

    while(1)
    {
        serial.printf("I am a virtual serial port!\r\n");
        wait(0.5);
    }
}