Toyomasa Watarai / BubbleDisplay

Dependents:   QDSP-6064-hello

Fork of BubbleDisplay by Michael Dushkoff

Files at this revision

API Documentation at this revision

Comitter:
mdu7078
Date:
Thu Mar 26 08:10:08 2015 +0000
Parent:
1:0dd75913f211
Child:
3:1d85399fdea3
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
--- 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));
 }
 
 /*
--- 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)    *
  * * * * * * * * * * * * * * * * * * * * * * * * * * */