/* * 17/06/2017 * HECHO EN ELECTRĂ“NICA ESTUDIO POR WGB Y SGG * CĂ“DIGO DE EJEMPLO PARA EL SENSOR DE SONIDO EE-SHT114 */ int LED = 10; int OUTT = 12; void setup() { // put your setup code here, to run once: pinMode(LED, INPUT); pinMode(OUTT, OUTPUT); digitalWrite(OUTT, HIGH); } void loop() { // put your main code here, to run repeatedly: if (digitalRead(LED) == LOW) { //PONER UN JUMPER EN PCB LEYENDA LED delay(2000); digitalWrite (OUTT, LOW); //PONER UN JUMPER EN PCB LEYENDA LED delay(1000); digitalWrite (OUTT, HIGH); delay(1000); } else { digitalWrite(OUTT, HIGH); } } //}