Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* contoh prorram untuk menyalakan 2 buzzer
- created 14 – januari – 2018
- By. M Hasan A.M */
- int buzz1 = 6;
- int buzz2 = 7;
- void setup(){
- pinMode (buzz1, OUTPUT);
- pinMode(buzz2, OUTPUT);
- }
- void loop(){
- noTone(buzz2);
- tone (buzz1, 980);
- delay (100);
- noTone(buzz1);
- tone(buzz2, 880);
- delay(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment