Created
June 20, 2015 20:25
-
-
Save UlisesGascon/d5b6fe7f76a31c628822 to your computer and use it in GitHub Desktop.
pptls - Debug
This file contains 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
// 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