Michael Dushkoff / BubbleDisplay

Files at this revision

API Documentation at this revision

Comitter:
mdu7078
Date:
Thu Mar 26 08:10:08 2015 +0000
Parent:
1:0dd75913f211
Commit message:
Fixed issue with display starting out as "0000" which was due to the fact that a table lookup is not necessary for initializing the character values since these characters are looked up in the LUT already (redundant call).

Changed in this revision

bubble.cpp Show annotated file Show diff for this revision Revisions of this file
bubble.h Show annotated file Show diff for this revision Revisions of this file
diff -r 0dd75913f211 -r 3604f34e944b bubble.cpp
--- a/bubble.cpp	Thu Mar 26 07:51:53 2015 +0000
+++ b/bubble.cpp	Thu Mar 26 08:10:08 2015 +0000
@@ -1,5 +1,5 @@
 /* * * * * * * * * * * * * * * * * * * * * * * * * * *
- * This drives the popular QDSP6064 bubble display.  *
+ * This drives the popular QDSP-6064 bubble display. *
  *                                                   *
  * Created by: Michael Dushkoff (mad1841@rit.edu)    *
  * * * * * * * * * * * * * * * * * * * * * * * * * * */
@@ -25,18 +25,18 @@
     _anB = new DigitalOut(m10);
     _anA = new DigitalOut(m11);
     
-    // Initialize the Ticker
-    _freq = DEF_DISPL_FREQ;
-    _cycler.attach(this,&BubbleDisplay::cycle,1.0/(_freq));
-    
     // Set the initial display number
     _seg = 0;
     
     // Set the initial character values
-    _chrs[0] = dispTabl[' '];
-    _chrs[1] = dispTabl[' '];
-    _chrs[2] = dispTabl[' '];
-    _chrs[3] = dispTabl[' '];
+    _chrs[0] = ' ';
+    _chrs[1] = ' ';
+    _chrs[2] = ' ';
+    _chrs[3] = ' ';
+    
+    // Initialize the Ticker
+    _freq = DEF_DISPL_FREQ;
+    _cycler.attach(this,&BubbleDisplay::cycle,1.0/(_freq));
 }
 
 /*
diff -r 0dd75913f211 -r 3604f34e944b bubble.h
--- a/bubble.h	Thu Mar 26 07:51:53 2015 +0000
+++ b/bubble.h	Thu Mar 26 08:10:08 2015 +0000
@@ -1,5 +1,5 @@
 /* * * * * * * * * * * * * * * * * * * * * * * * * * *
- * This drives the popular QDSP6064 bubble display.  *
+ * This drives the popular QDSP-6064 bubble display. *
  *                                                   *
  * Created by: Michael Dushkoff (mad1841@rit.edu)    *
  * * * * * * * * * * * * * * * * * * * * * * * * * * */