Papermind

Untitled

Jan 14th, 2018
2,218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. /* contoh prorram untuk menyalakan 2 buzzer
  2. created 14 – januari – 2018
  3. By. M Hasan A.M */
  4. int buzz1 = 6;
  5. int buzz2 = 7;
  6. void setup(){
  7. pinMode (buzz1, OUTPUT);
  8. pinMode(buzz2, OUTPUT);
  9. }
  10. void loop(){
  11. noTone(buzz2);
  12. tone (buzz1, 980);
  13. delay (100);
  14. noTone(buzz1);
  15. tone(buzz2, 880);
  16. delay(100);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment