
week 34
Revision 0:50e121c21784, committed 2014-12-17
- Comitter:
- kevinmark13
- Date:
- Wed Dec 17 01:21:51 2014 +0000
- Commit message:
- lab 2 part 2;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 17 01:21:51 2014 +0000 @@ -0,0 +1,22 @@ + + +#include "mbed.h" +#include<stdio.h> +using namespace std; + +Serial pc(USBTX,USBRX);// define TX and RX + +int main() +{ + pc.printf(" Hello world! \n\r"); + + while(1) + { + char buffer[128]; // creates an array of 128 elements + + pc.gets(buffer, 16); + + pc.printf("You typed '%s' \n", buffer); + + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 17 01:21:51 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file