diff options
author | Alexander Kauerz <kauerz@informatik.uni-luebeck.de> | 2011-11-04 19:50:54 +0100 |
---|---|---|
committer | Alexander Kauerz <kauerz@informatik.uni-luebeck.de> | 2011-11-04 19:50:54 +0100 |
commit | 3ca5273b7739263d1905f4773f0eb95f1fd96cfe (patch) | |
tree | 5872046f5860fe6a4f47d21745c5acade6cc2bd1 /Matrix_5x6/Charlie | |
parent | d9207a5d494403233d16105fd24d3e4cc6d08992 (diff) | |
download | ledmatrix-3ca5273b7739263d1905f4773f0eb95f1fd96cfe.tar ledmatrix-3ca5273b7739263d1905f4773f0eb95f1fd96cfe.zip |
Lauflicht über alle 30 LEDs
Diffstat (limited to 'Matrix_5x6/Charlie')
-rw-r--r-- | Matrix_5x6/Charlie/Charlie.pde | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Matrix_5x6/Charlie/Charlie.pde b/Matrix_5x6/Charlie/Charlie.pde index 8849d62..38527e5 100644 --- a/Matrix_5x6/Charlie/Charlie.pde +++ b/Matrix_5x6/Charlie/Charlie.pde @@ -7,24 +7,24 @@ 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}, +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}, + {0, 4} , {1, 4} , {2, 4} , {3, 4} , {4, 3} , {5, 3}, + {0, 5} , {1, 5} , {2, 5} , {3, 5} , {4, 5} , {5, 4}, }; -int wait = 500; +int wait = 100; void setup(){ /*nothing*/ } void loop(){ int i; - for (i=0; i<6; i++){ + for (i=0; i<30; i++){ charlieplex.charlieWrite(ledi[i],HIGH); delay(wait); charlieplex.clear(); + delay(wait); } delay(wait); } |