turn off display before updating rows
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 Jan 2016 20:47:34 +0000 (21:47 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 Jan 2016 20:47:34 +0000 (21:47 +0100)
this will remove ghost lines which where present

Hub08_LedMatrix/LEDMatrix.cpp

index 8cae64e..1c498e0 100644 (file)
@@ -159,14 +159,14 @@ void LEDMatrix::scan()
         }
     }
 
+    digitalWrite(oe, HIGH);              // disable display
+
     // select row
     digitalWrite(a, (row & 0x01));
     digitalWrite(b, (row & 0x02));
     digitalWrite(c, (row & 0x04));
     digitalWrite(d, (row & 0x08));
 
-    digitalWrite(oe, HIGH);              // disable display
-
     // latch data
     digitalWrite(stb, LOW);
     digitalWrite(stb, HIGH);