[熱情]

[arduino] 문자 출력하고 LED 깜빡이기~ 본문

Arduino/Arduino diy

[arduino] 문자 출력하고 LED 깜빡이기~

rootkaien 2015. 9. 12. 01:52




int ledPin = 13;


void setup() {

  // put your setup code here, to run once:

  Serial.begin(9600);

  pinMode(ledPin, OUTPUT);


}


void loop() {

  // put your main code here, to run repeatedly:  

  digitalWrite(ledPin, HIGH);

  delay(1000);

  digitalWrite(ledPin, LOW);


  Serial.println("Hello World !!");

  delay(1000);

}



Comments