Last active
October 28, 2019 07:16
-
-
Save RobolinkAkademi/86aa0227c9fafdd2d6b9d1f5cca70741 to your computer and use it in GitHub Desktop.
tum_yil_icin_arduino_mufredati_13
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
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