본문 바로가기

아두이노-스케치

씨리얼 모니터 테스트 프로그램




소스 코드 긁어서 카피해서 사용



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void setup() 
{
      // initialize digital pin 13 as an output.
      pinMode(13, OUTPUT);
      // initialize serial communication at 9600 bits per second:
      Serial.begin(9600);
}
 
// the loop function runs over and over again forever
void loop() 
{
      digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
      delay(1000);              // wait for a second
      digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
      delay(1000);              // wait for a second
      Serial.println("LED on, off");
}
cs