初学者的 Arduino 指南/项目/使 LED 闪烁
外观
	
	
在本章中,你将学习如何在 Arduino 板上使 LED 闪烁。这是你可以进行的最简单的项目之一。
// this runs only once on power up
void setup() {
  pinMode(13, OUTPUT);
}
// the loop function runs continuously until the device is powered down
void loop() {
  digitalWrite(13, HIGH);   // turn on LED
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn off LED
  delay(1000);              // wait for a second
}
