void setup()
{
}
void loop()
{
for (unsigned int x = 200; x <= 4000; x += 100)
{
tone(8, x);
delay(200);
}
for (unsigned int x = 4000; x >= 200; x -= 100)
{
tone(8, x);
delay(200);
}
} //END of loop()
1 Like