USBSerial Hello World

Dependencies:   USBDevice mbed

Fork of USBSerial_HelloWorld by Samuel Mokrani

main.cpp

Committer:
Compass_Yap
Date:
2017-09-21
Revision:
10:53516c096b5d
Parent:
9:d88699a0905a

File content as of revision 10:53516c096b5d:

#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(1);
    }
}