This commit is contained in:
Anthony Wang 2022-09-22 16:56:58 -04:00
parent 7e3cd4f91d
commit e584c381d9
Signed by: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -17,7 +17,7 @@ void loop() {
for (int i = 0; i < len; ++i) {
while (analogRead(A0) < 240 && analogRead(A1) < 240 && analogRead(A2) < 240 && analogRead(A3) < 240);
for (int j = 0; j < 4; ++j)
if (analogRead(A0+j) > 240 && seq[i] != j) goto DONE; // Legit use case of goto to jump out of 2 loops
if (analogRead(A0+j) > 240 && seq[i] != j) goto DONE; // Legit use case of goto to jump out of 3 loops
delay(500);
}
for (int i = 0; i < 8; ++i) {