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:
- 0:74befa7c834e
- Child:
- 1:3b2422723265
diff -r 000000000000 -r 74befa7c834e main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Sep 02 06:31:37 2016 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+BusOut seg(D0,D5,D4,D3,D2,D6,D7);
+
+int main() {
+ const int number[10]= {
+ 0x7E,
+ 0x30,
+ 0x6D,
+ 0x79,
+ 0x33,
+ 0x5B,
+ 0x1F,
+ 0x70,
+ 0x7F,
+ 0x73
+};
+ while(1) {
+ for(int i=0;i<=9;i++){
+ seg=number[i];
+ wait(0.5);
+ }
+ }
+}