Modul Cu Buzzer
Modul Cu Buzzer
/*
Melody
Plays a melody
circuit:
* 8-ohm speaker on digital pin 8
http://www.arduino.cc/en/Tutorial/Tone
*/
#define NOTE_C4 262
#define NOTE_G3 196
#define NOTE_A3 220
#define NOTE_B3 247
#define NOTE_C4 262
void setup() {
// iterate over the notes of the melody:
for (int thisNote = 0; thisNote < 8; thisNote++) {
void loop() {
// no need to repeat the melody.