Created
March 1, 2021 10:09
-
-
Save ayhanbaris/d852ee4c966532999208eb678ef49922 to your computer and use it in GitHub Desktop.
arduino 7segment progress-bar animasyon, yuvarlak çizer
This file contains 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
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