Created
January 25, 2012 01:01
-
-
Save ssov/1673902 to your computer and use it in GitHub Desktop.
あれあれあれ〄
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pov[10][10] = { | |
{0,1,1,1,1,1,1,1,1,1}, | |
{1,0,0,0,1,0,0,0,0,0}, | |
{1,0,0,0,1,0,0,0,0,0}, | |
{1,0,0,0,1,0,0,0,0,0}, | |
{0,1,1,1,1,1,1,1,1,1}, | |
}; | |
void setup() | |
{ | |
int i; | |
for(i=2; i<=11; i++) { | |
pinMode(i, OUTPUT); | |
} | |
} | |
void loop() | |
{ | |
int i, j; | |
for(j=0; j < 11; j++) { | |
delay(4); | |
for(i=2; i<=11; i++) { | |
digitalWrite(i, LOW); | |
} | |
//delay(50); | |
for(i=0; i < 10; i++) { | |
if(pov[j][i] == 1) { | |
digitalWrite(i+2, HIGH); | |
} | |
} | |
} | |
for(i=2; i<=11; i++) { | |
digitalWrite(i, LOW); | |
} | |
delay(50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment