Last active
August 29, 2015 14:23
-
-
Save UlisesGascon/f8bb19dafd74457c908c to your computer and use it in GitHub Desktop.
pptls - setup
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
// ==== 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