Skip to content

Instantly share code, notes, and snippets.

@patrickod
Created February 27, 2010 20:07
Show Gist options
  • Save patrickod/316918 to your computer and use it in GitHub Desktop.
Save patrickod/316918 to your computer and use it in GitHub Desktop.
// called with ledloading(4)
void ledloading(int counter) {
int z = 0;
for (z = 0; z < counter; z++)
{
ledalloff();
digitalWrite(a, LOW);
digitalWrite(d, LOW);
digitalWrite(f, HIGH);
digitalWrite(c, HIGH);
delay(80);
digitalWrite(a, HIGH);
digitalWrite(d, HIGH);
digitalWrite(b, LOW);
digitalWrite(e, LOW);
delay(80);
digitalWrite(b, HIGH);
digitalWrite(e, HIGH);
digitalWrite(f, LOW);
digitalWrite(c, LOW);
delay(80);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment