PIEZO
2019. 9. 19. 17:47ㆍ나의 노력/아두이노
#define PIEZO 3
void setup() {
// put your setup code here, to run once:
pinMode(PIEZO,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
tone(PIEZO,261);
delay(1000);
noTone(PIEZO);
delay(1000);
}
'나의 노력 > 아두이노' 카테고리의 다른 글
스텝 모터 (0) | 2019.09.19 |
---|---|
LCD 에 이름 띄우기 (0) | 2019.09.19 |