![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Project to practice collaboration and header files
Diff: HostIO.cpp
- Revision:
- 3:6e8bf95e144d
diff -r 7854ff9b64bf -r 6e8bf95e144d HostIO.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HostIO.cpp Mon Jan 11 18:53:01 2016 +0000 @@ -0,0 +1,12 @@ +#include "HostIO.h" +Serial pc(USBTX,USBRX); + +void HostInit(void){ + pc.printf("\n\rType two idgit numbers to be \n\r"); + } + + char GetKeyInput(void){ + char c = pc.getc(); + pc.printf("%c",c); + return(c&0x0F); + } \ No newline at end of file