Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ayhanbaris/d852ee4c966532999208eb678ef49922 to your computer and use it in GitHub Desktop.
Save ayhanbaris/d852ee4c966532999208eb678ef49922 to your computer and use it in GitHub Desktop.
arduino 7segment progress-bar animasyon, yuvarlak çizer
void progressBar() {
digitalWrite(A,HIGH);
digitalWrite(B,HIGH);
digitalWrite(C,HIGH);
digitalWrite(D,HIGH);
digitalWrite(E,HIGH);
digitalWrite(F,HIGH);
digitalWrite(G,HIGH);
digitalWrite(A,LOW);
delay(150);
digitalWrite(A,HIGH);
digitalWrite(B,LOW);
delay(150);
digitalWrite(B,HIGH);
digitalWrite(C,LOW);
delay(150);
digitalWrite(C,HIGH);
digitalWrite(D,LOW);
delay(150);
digitalWrite(D,HIGH);
digitalWrite(E,LOW);
delay(150);
digitalWrite(E,HIGH);
digitalWrite(F,LOW);
delay(150);
digitalWrite(F,HIGH);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment