Hello
I think something strange happens with my ATtiny13A sketch...
Or maybe it's a Bug.
So, I'm trying to make a beeper sounds on PIN3 two times and then stop for 10 secs and repeat
like this: Beeep ...0.5secs... Beeep .............10 secs............... Beeep ...0.5secs... Beeep
but what I get is only one continues never ending Beeeeeeeeeeeep.......
my sketch is this:
void setup()
{
pinMode(3, OUTPUT); // beeper
}
void loop()
{
delay(5000);
tone(3, 2100);
delay(80);
noTone(3);
delay(1000);
tone(3,800);
delay(1000);
noTone(3);
}
The strange thing is that is ONLY happening on PIN3, and it's working normaly on PIN4
So far, I've found that code brakes when noTone(3) functions executes and starts over again.
If I remove noTone(3) code completes too the end of the sketch without errors.
any ideas?