Advertisement
Ultizin

Código Aula 7

Jun 23rd, 2024
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. int buzzer = 8;
  2.  
  3. void setup() {
  4.     pinMode(buzzer, OUTPUT);
  5.  
  6. }
  7. void loop() {
  8.     tone(buzzer, 261);
  9.         delay(200);
  10.    noTone(buzzer);
  11.     tone(buzzer, 293);
  12.         delay(200);
  13.    noTone(buzzer);
  14.     tone(buzzer, 329);
  15.         delay(200);
  16.    noTone(buzzer);
  17.     tone(buzzer, 349);
  18.         delay(200);
  19.    noTone(buzzer);
  20.     tone(buzzer, 392);
  21.         delay(200);
  22.    noTone(buzzer);
  23.         delay(2000);
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement