USBSerial Hello World

Dependencies:   mbed USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "USBSerial.h"
00003  
00004 //Virtual serial port over USB
00005 USBSerial serial;
00006  
00007 int main(void) {
00008  
00009     while(1)
00010     {
00011         serial.printf("I am a virtual serial port\r\n");
00012         wait(1);
00013     }
00014 }