Project to practice collaboration and header files

Dependencies:   mbed

HostIO.cpp

Committer:
burritodude
Date:
2016-01-11
Revision:
3:6e8bf95e144d

File content as of revision 3:6e8bf95e144d:

#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);
        }