projects
/
Arduino
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99821cf
)
use digitalWrite instead of SPI
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Dec 2015 19:57:13 +0000
(20:57 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Dec 2015 19:57:13 +0000
(20:57 +0100)
Hub08_LedMatrix/LEDMatrix.cpp
patch
|
blob
|
history
diff --git
a/Hub08_LedMatrix/LEDMatrix.cpp
b/Hub08_LedMatrix/LEDMatrix.cpp
index
74e4fa5
..
a6719bf
100644
(file)
--- a/
Hub08_LedMatrix/LEDMatrix.cpp
+++ b/
Hub08_LedMatrix/LEDMatrix.cpp
@@
-21,7
+21,7
@@
#include "LEDMatrix.h"
#include "Arduino.h"
-#define USE_SPI
1
+#define USE_SPI
0
#if USE_SPI
#include <SPI.h>
@@
-157,14
+157,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);