projects
/
Arduino
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc2030
)
turn off display before updating rows
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 1 Jan 2016 20:47:34 +0000
(21:47 +0100)
committer
Dobrica 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
patch
|
blob
|
history
diff --git
a/Hub08_LedMatrix/LEDMatrix.cpp
b/Hub08_LedMatrix/LEDMatrix.cpp
index
8cae64e
..
1c498e0
100644
(file)
--- a/
Hub08_LedMatrix/LEDMatrix.cpp
+++ b/
Hub08_LedMatrix/LEDMatrix.cpp
@@
-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);