поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

DEV-07914 датащи(PDF) 4 Page - SparkFun Electronics

номер детали DEV-07914
подробное описание детали  ProtoShield Quickstart Guide
PDF  9 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  SPARKFUN [SparkFun Electronics]
домашняя страница  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-07914 датащи(HTML) 4 Page - SparkFun Electronics

  DEV-07914 Datasheet HTML 1Page - SparkFun Electronics DEV-07914 Datasheet HTML 2Page - SparkFun Electronics DEV-07914 Datasheet HTML 3Page - SparkFun Electronics DEV-07914 Datasheet HTML 4Page - SparkFun Electronics DEV-07914 Datasheet HTML 5Page - SparkFun Electronics DEV-07914 Datasheet HTML 6Page - SparkFun Electronics DEV-07914 Datasheet HTML 7Page - SparkFun Electronics DEV-07914 Datasheet HTML 8Page - SparkFun Electronics DEV-07914 Datasheet HTML 9Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 4 / 9 page
background image
int ledPin =
13;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
Make sure you change the value of 'ledPin' to whatever digital pin your LED is
connected to; in the above example it is tied to pin 13. That sketch should turn the
LED on for a second, off for a second, on for a second, off for a second, and so on.
Note that both LEDs have one leg tied to ground through a 330Ω resistor, and the
other leg connected to either JC2 or JC3 (and then to whatever pin you have them
connected to on your Arduino). This means that you have to 'digitalWrite' the pin
HIGH to turn the LED on, and LOW to turn it off.
Sidenote: The 330Ω resistor is there to limit the current that is allowed to go through
the LED. This is a necessity for just about every LED, as they are prone to blow up if
supplied current that is over their maximum rating (about 20mA for these LEDs).
Using the Button
As with the LEDs, before you can use the button you have to connect it to a digital or
analog pin of your choice. For a perfect example of how to use the button, check out
the 'Button' example (in Arduino go to File->Examples->Digital->Button):



Html Pages

1 2 3 4 5 6 7 8 9


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com