Skip to content

Instantly share code, notes, and snippets.

@RobolinkAkademi
Last active October 28, 2019 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobolinkAkademi/86aa0227c9fafdd2d6b9d1f5cca70741 to your computer and use it in GitHub Desktop.
Save RobolinkAkademi/86aa0227c9fafdd2d6b9d1f5cca70741 to your computer and use it in GitHub Desktop.
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