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.
Fork of BubbleDisplay by
Revision 2:3604f34e944b, committed 2015-03-26
- 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) * * * * * * * * * * * * * * * * * * * * * * * * * * * */

QDSP-6040