projects
/
Arduino
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e767296
)
do more correct matrix.scan() without hardware SPI
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Dec 2015 19:37:47 +0000
(20:37 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Dec 2015 19:37:47 +0000
(20:37 +0100)
Hub08_LedMatrix/Hub08_LedMatrix.ino
patch
|
blob
|
history
diff --git
a/Hub08_LedMatrix/Hub08_LedMatrix.ino
b/Hub08_LedMatrix/Hub08_LedMatrix.ino
index
d0a48de
..
c7d4c7f
100644
(file)
--- a/
Hub08_LedMatrix/Hub08_LedMatrix.ino
+++ b/
Hub08_LedMatrix/Hub08_LedMatrix.ino
@@
-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
}
}
}