| Electronic Components Datasheet Search |
|
DFR0789 Datasheet(PDF) 13 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0789 Datasheet(HTML) 13 Page - DFROBOT |
|
13 / 15 page ![]() /* Description: When you press the button for the first time, its inner LED will be lighten up. At t When you press the button again, its inner LED will be off, and the other one on pin */ int ledPin = 13; // Select the pin of light int inputPin = 2; // Sensor connect pin 2 void setup() { pinMode(ledPin, OUTPUT); // Define the pin of light as output pin pinMode(inputPin, INPUT); // Define the pin of button as input pin } void loop(){ int val = digitalRead(inputPin); //Read input value |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| 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 |