蜂鳴器模組
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
tone(5, 1000);int i;
void setup()
{
pinMode(5, OUTPUT);
}
void loop()
{
for (i = 0; i <= 10; i++) {
tone(5, 2000);
delay(50);
tone(5, 1000);
delay(50);
}
noTone(5);
delay(1000);
}