6 x 7 segment display library for PCA9637 driven breakout board

Dependents:   FTSE100 InternetDispBoB digitalThermometer Counter ... more

Revision:
7:adcfb0f5e4de
Parent:
6:1721cdf1024e
Child:
8:a875c4229c57
--- a/dispBoB.cpp	Wed Jun 29 13:24:44 2011 +0000
+++ b/dispBoB.cpp	Wed Jun 29 14:02:47 2011 +0000
@@ -66,24 +66,10 @@
     _pca.bus(_pair[i]); 
 }
 
-void dispBoB::putc(char c, char pos){
-
-    locate(pos);
-    
-    if(_cursor & 1){
-    _element[_cursor] = _dispR[c];
-    } else {
-    _element[_cursor] = _dispL[c];
-    } 
-    
-    int i = _cursor/2;
-    _pair[i] = _element[(2*i)] + _element[(2*i)+1];
-    _pca.bus(_pair[i]); 
-}
-
 void dispBoB::write(string str){ 
     for(int j = 5; j >= 0; j--){
-        putc(toupper(str[j]), j);
+        locate(j);
+        putc(toupper(str[j]));
     }
 }