코풀 커뮤니티

피에조 부저로 도레미 음계 출력하기

과제

서*조

2024-12-31

코드에디터

C++
#include <HuemonelabKit.h>

Buzzer buzzer(13);

void setup() {
Serial.begin(9600);
}

void loop() {
buzzer.note('c');
buzzer.note('d');
buzzer.note('e');
buzzer.note('f', 500);
buzzer.note('g', 500);
buzzer.stop();
}
입력
실행 결과
이 곳에 결과가 표시됩니다.
post-image
post-image
post-image
post-image
post-image
post-image
post-image
post-image
post-image
computerlogo