Created
June 20, 2015 20:17
-
-
Save UlisesGascon/2190eae74aed7b2e4c15 to your computer and use it in GitHub Desktop.
pptls - While Loop
This file contains hidden or 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
// variable de control de loop while | |
bool run = true; | |
// ==== EMPIEZA EL LOOP() ==== | |
void loop (){ | |
// Loop de control | |
while(run == true){ | |
if(eleccionJugador == eleccionArduino){ | |
Serial.print("Empate! "+String(eleccionJugador)+" no gana a "+String(eleccionArduino)); | |
delay(1000); | |
run = false; // Para el Loop While y con ello todo dentro de Loop(). | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment