Rabu, 02 Mei 2018

PERCOBAAN-9 "NADA"

NAMA KELOMPOK:
1. M TAUFIQ IRVAN E. / 163600027
2. YULFI AINUN AL F. / 163600053

TUJUAN : Membuat nada bunyi atau musik 1 oktaf

PROGRAM :
void setup() {
  // put your setup code here, to run once:
pinMode(8,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
noTone(8);
delay(1000);
tone(8,264,200);
delay(200);
noTone(8);
delay(1000);
tone(8,297,200);
delay(200);
noTone(8);
delay(1000);
tone(8,330,200);
delay(200);
noTone(8);
delay(1000);
tone(8,352,200);
delay(200);
noTone(8);
delay(1000);
tone(8,396,200);
delay(200);
noTone(8);
delay(1000);
tone(8,440,200);
delay(200);
noTone(8);
delay(1000);
tone(8,495,200);
delay(200);
noTone(8);
delay(1000);
tone(8,528,200);
delay(200);

}


Tidak ada komentar:

Posting Komentar