Created
October 2, 2017 09:30
-
-
Save ikizoglu/edd964af651ab04948509fee98f533ac to your computer and use it in GitHub Desktop.
Arduino Buzzer Kullanımı
This file contains hidden or 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
| // ************************ | |
| // ** Kemal İKİZOĞLU ** | |
| // ************************ | |
| const int buzzer = 13; // Buzzer'i 13 pine bağladık | |
| void setup(){ | |
| pinMode(buzzer, OUTPUT); // Buzzer'ı 13.pinden çıkış aldık | |
| } | |
| void loop(){ | |
| tone(buzzer, 1000); // 1KHz ses sinyali gönderdik | |
| delay(1000); // 1 sn sesi çal | |
| noTone(buzzer); // Sesi durdurduk | |
| delay(1000); // 1sn sessizlik | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment