do more correct matrix.scan() without hardware SPI
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 27 Dec 2015 19:37:47 +0000 (20:37 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 27 Dec 2015 19:37:47 +0000 (20:37 +0100)
Hub08_LedMatrix/Hub08_LedMatrix.ino

index d0a48de..c7d4c7f 100644 (file)
@@ -137,10 +137,14 @@ void loop()
                                *(dest + i) = ( *(src + j) << o ) | (( *(src + j + 1) & ( 0xff << 8 - o ) ) >> 8 - o );
                                i++;
                                j++;
+#if USE_SPI
                                matrix.scan();
+#endif
                        }
                        j++; // skip off-screen character used for smooth scroll
-//                     matrix.scan();
+#if ! USE_SPI
+                       matrix.scan();
+#endif
                 }
           }
     }