Kevin Maddox
/
Lab2Part2
week 34
main.cpp
- Committer:
- kevinmark13
- Date:
- 2014-12-17
- Revision:
- 0:50e121c21784
File content as of revision 0:50e121c21784:
#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); } }