Dependencies:   USBDevice mbed

Committer:
jwillner
Date:
Tue Jul 03 15:37:35 2012 +0000
Revision:
0:2affa067e73c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jwillner 0:2affa067e73c 1 #include "mbed.h"
jwillner 0:2affa067e73c 2 #include "USBSerial.h"
jwillner 0:2affa067e73c 3
jwillner 0:2affa067e73c 4 //Virtual serial port over USB
jwillner 0:2affa067e73c 5 USBSerial serial;
jwillner 0:2affa067e73c 6
jwillner 0:2affa067e73c 7 int main(void) {
jwillner 0:2affa067e73c 8
jwillner 0:2affa067e73c 9 while(1)
jwillner 0:2affa067e73c 10 {
jwillner 0:2affa067e73c 11 serial.printf("I am a virtual serial port!\r\n");
jwillner 0:2affa067e73c 12 wait(0.5);
jwillner 0:2affa067e73c 13 }
jwillner 0:2affa067e73c 14 }