summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-11-04 19:34:06 +0100
committerAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-11-04 19:34:06 +0100
commitd9207a5d494403233d16105fd24d3e4cc6d08992 (patch)
treef12ca78438ac2fe8fd1dc11091387c09e10ea462
parent4d6c389b1681bda08ce82a64c353cf9f4fda4554 (diff)
downloadledmatrix-d9207a5d494403233d16105fd24d3e4cc6d08992.tar
ledmatrix-d9207a5d494403233d16105fd24d3e4cc6d08992.zip
Lauflicht
-rw-r--r--Matrix_5x6/Charlie/Charlie.pde24
1 files changed, 16 insertions, 8 deletions
diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde
index 9ecc80d..8849d62 100644
--- a/Matrix_5x6/Charlie/Charlie.pde
+++ b/Matrix_5x6/Charlie/Charlie.pde
@@ -4,19 +4,27 @@
byte pins[] = {2,3,4,5,6,7};
Charlieplex charlieplex = Charlieplex(pins,NUMBER_OF_PINS);
-charliePin led0 = { 0 , 1 };//HIGH when current flows from 2 to 3
-charliePin led1 = { 1 , 0 };//HIGH when current flows from 3 to 2
+//charliePin led0 = { 0 , 1 };//HIGH when current flows from 2 to 3
+//charliePin led1 = { 1 , 0 };//HIGH when current flows from 3 to 2
+
+charliePin ledi[] = { {0, 1},
+ {1, 0},
+ {2, 0},
+ {3, 0},
+ {4, 0},
+ {5, 0},
+ };
-boolean singleOn = false;
int wait = 500;
void setup(){ /*nothing*/ }
void loop(){
- charlieplex.charlieWrite(led0,HIGH);
- delay(wait);
- charlieplex.charlieWrite(led1,HIGH);
- delay(wait);
- charlieplex.clear();
+ int i;
+ for (i=0; i<6; i++){
+ charlieplex.charlieWrite(ledi[i],HIGH);
+ delay(wait);
+ charlieplex.clear();
+ }
delay(wait);
}