Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Last active August 29, 2015 14:23
Show Gist options
  • Save UlisesGascon/f8bb19dafd74457c908c to your computer and use it in GitHub Desktop.
Save UlisesGascon/f8bb19dafd74457c908c to your computer and use it in GitHub Desktop.
pptls - setup
// ==== Definiendo los Botones ====
// botones
int boton1 = 12;
int boton2 = 11;
int boton3 = 10;
int boton4 = 9;
int boton5 = 8;
// ==== EMPIEZA EL SETUP() ====
void setup() {
// Modo Input en los pulsadores
pinMode(boton1, INPUT);
pinMode(boton2, INPUT);
pinMode(boton3, INPUT);
pinMode(boton4, INPUT);
pinMode(boton5, INPUT);
//Activando la comunicación Serial
Serial.begin(9600);
Serial.println("Comunicacion establecida con exito");
// mensaje de bienvenida
Serial.println("Bienvenido Humano! Es hora de jugar a -- Piedra papel tijeras lagarto Spock --");
Serial.println("Tiempo de elegir. Presiona un boton");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment