#define SPEAKER_PIN 1
void setup() {
pinMode(SPEAKER_PIN, OUTPUT);
tone(SPEAKER_PIN, 300, 1000);
noTone(SPEAKER_PIN);
pinMode(2, OUTPUT);
}
void loop() {
//
digitalWrite(2, HIGH);
delay(500 );
digitalWrite(2, LOW);
delay(500 );
}
#define SPEAKER_PIN 1
void setup() {
pinMode(SPEAKER_PIN, OUTPUT);
tone(SPEAKER_PIN, 300, 1000);
noTone(SPEAKER_PIN);
pinMode(2, OUTPUT);
}
void loop() {
//
digitalWrite(2, HIGH);
delay(500 );
digitalWrite(2, LOW);
delay(500 );
}