Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Created June 20, 2015 20:25
Show Gist options
  • Save UlisesGascon/d5b6fe7f76a31c628822 to your computer and use it in GitHub Desktop.
Save UlisesGascon/d5b6fe7f76a31c628822 to your computer and use it in GitHub Desktop.
pptls - Debug
// Parámetros del depurador
#define DEBUGMODE
// ==== EMPIEZA EL SETUP() ====
void setup() {
//Activando la comunicación Serial
Serial.begin(9600);
Serial.println("Comunicacion establecida con exito");
// Aviso del DebugMode
#ifdef DEBUGMODE
Serial.print("DEBUGMODE Activado");
#endif
}
// ==== EMPIEZA EL LOOP() ====
void loop (){
// Loop de control
// === ELECCIÓN ARDUINO ===
// DebugMode
#ifdef DEBUGMODE
Serial.print("Arduino elige: "+String(eleccionArduino));
#endif
// === ELECCIÓN HUMANO ===
// DebugMode
#ifdef DEBUGMODE
Serial.print("Humano elige: "+String(eleccionJugador));
#endif
} //Loop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment