Samuel Mokrani
/
USBSerial_HelloWorld
USBSerial Hello World
Revision 9:d88699a0905a, committed 2013-03-01
- Comitter:
- samux
- Date:
- Fri Mar 01 13:33:02 2013 +0000
- Parent:
- 8:90f8322a65f8
- Commit message:
- use latest USBDevice lib (FRDM-KL25Z support)
Changed in this revision
diff -r 90f8322a65f8 -r d88699a0905a USBDevice.lib --- a/USBDevice.lib Thu Dec 20 17:09:19 2012 +0000 +++ b/USBDevice.lib Fri Mar 01 13:33:02 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/USBDevice/#d0945750af57 +http://mbed.org/users/mbed_official/code/USBDevice/#335f2506f422
diff -r 90f8322a65f8 -r d88699a0905a main.cpp --- a/main.cpp Thu Dec 20 17:09:19 2012 +0000 +++ b/main.cpp Fri Mar 01 13:33:02 2013 +0000 @@ -3,15 +3,12 @@ //Virtual serial port over USB USBSerial serial; -DigitalOut l1(LED1); int main(void) { - int i = 0; - + while(1) { - serial.printf("I am a virtual serial port: %d\r\n", i++); - wait(0.1); - l1 = !l1; + serial.printf("I am a virtual serial port\r\n"); + wait(1); } } \ No newline at end of file
diff -r 90f8322a65f8 -r d88699a0905a mbed.bld --- a/mbed.bld Thu Dec 20 17:09:19 2012 +0000 +++ b/mbed.bld Fri Mar 01 13:33:02 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec \ No newline at end of file