Buzzer

 BUZZER





Código:

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int buzzer = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(buzzer, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(buzzer, HIGH);
  delay(100);
  digitalWrite(buzzer,LOW);
  delay(100);
  
  
  
}
 
 

 





Comentarios

Entradas populares de este blog

ESCALA MUSICAL CON BUZZER

Semáforo

PRÁCTICA POTENCIÓMETRO