File size: 238 Bytes
8e53a3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
    Use a piezoelectric buzzer to play 262Hz tone.
    4 APR 2025 by Blind Author
*/

#include <Arduino.h>

const int BUZZER_PIN = 2;

void setup() {
    pinMode(BUZZER_PIN, OUTPUT);
}

void loop() {
    tone(BUZZER_PIN, 262, 250);
}