summaryrefslogtreecommitdiffstats
path: root/Matrix_5x6/Charlie
diff options
context:
space:
mode:
authorAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-11-04 21:29:24 +0100
committerAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2011-11-04 21:29:24 +0100
commitee190ae483edf7ebf5d27a698054ea71daf1779f (patch)
tree8972b8da1c4be9fd734645ebc88b60652814ea22 /Matrix_5x6/Charlie
parent3ca5273b7739263d1905f4773f0eb95f1fd96cfe (diff)
downloadledmatrix-ee190ae483edf7ebf5d27a698054ea71daf1779f.tar
ledmatrix-ee190ae483edf7ebf5d27a698054ea71daf1779f.zip
Aufgeräumt und schön gemacht.
Diffstat (limited to 'Matrix_5x6/Charlie')
-rw-r--r--Matrix_5x6/Charlie/Charlie.pde13
1 files changed, 6 insertions, 7 deletions
diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde
index 38527e5..a0d2b73 100644
--- a/Matrix_5x6/Charlie/Charlie.pde
+++ b/Matrix_5x6/Charlie/Charlie.pde
@@ -4,9 +4,6 @@
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 ledi[] = { {0, 1} , {1, 0} , {2, 0} , {3, 0} , {4, 0} , {5, 0},
{0, 2} , {1, 2} , {2, 1} , {3, 1} , {4, 1} , {5, 1},
{0, 3} , {1, 3} , {2, 3} , {3, 2} , {4, 2} , {5, 2},
@@ -14,7 +11,8 @@ charliePin ledi[] = { {0, 1} , {1, 0} , {2, 0} , {3, 0} , {4, 0} , {5, 0},
{0, 5} , {1, 5} , {2, 5} , {3, 5} , {4, 5} , {5, 4},
};
-int wait = 100;
+int an = 2;
+int aus = 10;
void setup(){ /*nothing*/ }
@@ -22,9 +20,10 @@ void loop(){
int i;
for (i=0; i<30; i++){
charlieplex.charlieWrite(ledi[i],HIGH);
- delay(wait);
+ delay(an);
charlieplex.clear();
- delay(wait);
+ delay(aus);
}
- delay(wait);
+
+
}