Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 0;
- void setup() {
- pinMode(2, OUTPUT);
- }
- void loop() {
- while (i <= 12)
- {
- tone(2, 500);
- delay(50);
- tone(2, 400);
- delay(50);
- i = i+1;
- }
- noTone(2);
- delay(3000);
- i = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment