Skip to content

Instantly share code, notes, and snippets.

@ssov
Created January 25, 2012 01:01
Show Gist options
  • Save ssov/1673902 to your computer and use it in GitHub Desktop.
Save ssov/1673902 to your computer and use it in GitHub Desktop.
あれあれあれ〄
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