7seg SPI LED mocude test program

Dependencies:   mbed spi7Seg

Files at this revision

API Documentation at this revision

Comitter:
morecat_lab
Date:
Fri Jan 30 21:08:20 2015 +0000
Parent:
0:1d34bbc9e7a4
Commit message:
1st publish

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1d34bbc9e7a4 -r 48e2c8603f94 main.cpp
--- a/main.cpp	Fri Jan 30 21:07:11 2015 +0000
+++ b/main.cpp	Fri Jan 30 21:08:20 2015 +0000
@@ -10,12 +10,12 @@
     mySpi7Seg.begin();
     while(1) {
         myled = 1;
-//        mySpi7Seg.writeNum(i);
-        mySpi7Seg.writeHex(i);
+        mySpi7Seg.writeNum(i);
+//        mySpi7Seg.writeHex(i);
         mySpi7Seg.update();
-//        wait(0.02);
+        wait(0.02);
         myled = 0;
-//        wait(0.02);
+        wait(0.02);
         i++;
     }
 }