#주제 1 : 아두이노 음악 연주 프로그램
- 아두이노 > 적용(A) > #20.F > #1
- AA.20.F.1.4
'학교종' 연주 프로그램 작성
#define PIN 11
void setup() {
tone(PIN, 392, 1000);
delay(1000);
tone(PIN, 392, 1000);
delay(1000);
tone(PIN, 440, 1000);
delay(1000);
tone(PIN, 440, 1000);
delay(1000);
tone(PIN, 392, 1000);
delay(1000);
tone(PIN, 392, 1000);
delay(1000);
tone(PIN, 330, 2000);
delay(2000);
noTone(PIN);
}
void loop() {
}