Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

A Beginner's Arduino Guide/Projects/Getting the LED to flash

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

In this chapter, you will learn how to get the LED to flash on an Arduino board. This is one of the simplest projects that you can undertake. // 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 } 50%