Di Chan
/
SerialAOS
Serial mbed
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- dii168
- Date:
- 2015-02-23
- Revision:
- 2:7d1b18bdfdeb
- Parent:
- 1:560b8ced44df
File content as of revision 2:7d1b18bdfdeb:
#include "mbed.h" #include "C12832.h" C12832 lcd(p5, p7, p6, p8, p11); Serial pc(USBTX, USBRX); int main() { char buffer[128]; // while(1) { pc.gets(buffer, 2); // Take the value in buffer and put in Serial pc.printf("I got '%s'\n", buffer); // Displays stuff lcd.locate(0,0); lcd.cls(); lcd.printf(buffer); } }