Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

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

50% developed
From Wikibooks, open books for an open world
<A Beginner's Arduino Guide

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 upvoidsetup(){pinMode(13,OUTPUT);}// the loop function runs continuously until the device is powered downvoidloop(){digitalWrite(13,HIGH);// turn on LEDdelay(1000);// wait for a seconddigitalWrite(13,LOW);// turn off LEDdelay(1000);// wait for a second}
Retrieved from "https://en.wikibooks.org/w/index.php?title=A_Beginner%27s_Arduino_Guide/Projects/Getting_the_LED_to_flash&oldid=4026782"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp