tum_yil_icin_arduino_mufredati_13
int buzzerPin = 3; // Buzzerın 3 nolu pine tanımlanması | |
void setup() | |
{ | |
digitalWrite(buzzerPin,OUTPUT);// Buzzera çıkış sinyali gönderilmesi | |
} | |
void loop() | |
{ | |
tone(buzzerPin,HIGH);// Buzzera 5V sinyal gönderilmesi | |
delay(2000);//2 saniye bekletilmesi | |
noTone(buzzerPin);//Buzzera gönderilen sinyalin 0V'a indirilmesi | |
delay(2000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment