7segment SPI LED module from DF Robot.com

Dependents:   spi7seg_test

Revision:
1:fcb72bd26532
Parent:
0:f0806724e7c9
Child:
2:27cc28619363
--- a/Spi7Seg.cpp	Fri Jan 30 21:05:27 2015 +0000
+++ b/Spi7Seg.cpp	Fri Jan 30 22:46:29 2015 +0000
@@ -24,6 +24,7 @@
     _dataPin = 0;
     _clockPin = 1;
     _ratchPin = 1;
+    _zeroSupress = 1;
 }
 
 void Spi7Seg::begin(void) {
@@ -88,7 +89,7 @@
     if (_zeroSupress ) {
         for (int i = 0 ; i < (_numOfDigs-1) ; i++) {
             if (_buffer[i] == segCh(0)) {
-                _buffer[i] = _buffer[i] & 0x80;
+                _buffer[i] |= 0x7f; // blank except dot
             } else {
                 break;
             }