![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Project to practice collaboration and header files
Diff: main.cpp
- Revision:
- 3:6e8bf95e144d
- Parent:
- 0:7854ff9b64bf
diff -r 7854ff9b64bf -r 6e8bf95e144d main.cpp --- a/main.cpp Mon Jan 11 18:32:09 2016 +0000 +++ b/main.cpp Mon Jan 11 18:53:01 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(" "); + } }