Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Created June 20, 2015 20:17
Show Gist options
  • Save UlisesGascon/2190eae74aed7b2e4c15 to your computer and use it in GitHub Desktop.
Save UlisesGascon/2190eae74aed7b2e4c15 to your computer and use it in GitHub Desktop.
pptls - While Loop
// 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