Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* tone() & noTone()
- Created March – 2018
- By. papermindvention.blogspot.com
- */
- 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