Hayden Wisniewski
/
5CollabProj
Project to practice collaboration and header files
Diff: main.cpp
- Revision:
- 4:779121daed68
- Parent:
- 3:6e8bf95e144d
diff -r 6163059b96e8 -r 779121daed68 main.cpp --- a/main.cpp Mon Jan 11 18:54:43 2016 +0000 +++ b/main.cpp Mon Jan 11 19:00:56 2016 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" +#include "Host.IO.h" +#include "SegDisplay.h" -DigitalOut myled(LED1); +char data1, data2; int main() { + SegInit(); + HostInit(); while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + data2 = GetKeyInput(); + Seg2 = SegConvert(data2); + data1 = GetKeyInput(); + Seg1 = SegConvert(data1); + pc.printf(" "); + } }