Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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(" ");
+
}
}
