aboutsummaryrefslogtreecommitdiff
path: root/Arduino
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2011-09-12 14:17:46 +0100
committerChristopher Baines <cbaines8@gmail.com>2011-09-12 14:17:46 +0100
commit476322ce729ef56d808be66843fef18a83470191 (patch)
treecf43c90763d52f98f0fb46af9e92be12af090a70 /Arduino
parent036d5b97bcf7e7e79d53f7e594e353be2d5efdd5 (diff)
downloadpunchingbag-476322ce729ef56d808be66843fef18a83470191.tar
punchingbag-476322ce729ef56d808be66843fef18a83470191.tar.gz
More led stuff.
Diffstat (limited to 'Arduino')
-rw-r--r--Arduino/LEDMatrix/LEDMatrix.pde23
1 files changed, 21 insertions, 2 deletions
diff --git a/Arduino/LEDMatrix/LEDMatrix.pde b/Arduino/LEDMatrix/LEDMatrix.pde
index 4a07bfc..5aada79 100644
--- a/Arduino/LEDMatrix/LEDMatrix.pde
+++ b/Arduino/LEDMatrix/LEDMatrix.pde
@@ -24,10 +24,26 @@ void setup ( )
void loop ( )
{
- for (int i=0; i<(chips * 8); i++) {
- buffer[i] = 0b10101010;//random(-128,127); // Just Green
+ buffer[0] = 127;
+ buffer[1] = 0b10101010;
+ buffer[2] = 0b01010101;
+ for (int i=3; i<(chips * 8); i++) {
+ buffer[i] = 0;//random(-128,127); // Just Green 0b10101010
}
matrix.Update();
+
+ /*
+ while (true) {
+ int read = Serial.read();
+ if ((byte) read == (byte) 108) {
+ for (int b=0; b< (chips * 8); b++) {
+ buffer[b] = (byte) Serial.read();
+ }
+ break;
+ }
+ }
+ matrix.Update();*/
+
}
@@ -38,3 +54,6 @@ void loop ( )
+
+
+