Skip to content

Commit

Permalink
while文でcontinueでもチェックが通るか確認
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Sep 19, 2024
1 parent 7abe1cc commit f0d2db5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Arduino_Sample/STEP4/STEP4.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ void loop()
digitalWrite(LED_PIN, HIGH);
count++;
delay(30);
while (digitalRead(SW1_PIN) == LOW) {
// pass
}
while (digitalRead(SW1_PIN) == LOW) continue;
delay(30);
} else {
digitalWrite(LED_PIN, LOW);
Expand Down

0 comments on commit f0d2db5

Please sign in to comment.