Skip to content

Instantly share code, notes, and snippets.

@cbscribe
Created November 12, 2020 19:03
Show Gist options
  • Select an option

  • Save cbscribe/728bb2d01a68edae008aa8c36effa07d to your computer and use it in GitHub Desktop.

Select an option

Save cbscribe/728bb2d01a68edae008aa8c36effa07d to your computer and use it in GitHub Desktop.
int A = 7;
int B = 8;
int C = 9;
int D = 10;
int E = 11;
int F = 12;
int G = 13;
void setup()
{
for (int i = A; i <= G; i++)
{
pinMode(i, OUTPUT);
}
}
void loop()
{
for (int i = A; i <= G; i++)
{
digitalWrite(i, HIGH);
delay(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment