DFRobot DFR0100 Manual page 19

Beginner kit for arduino v3
Table of Contents

Advertisement

25/06/2015
?
1
/*
2
     Infrared controlled Light
3
*/
4
#include <IRremote.h>          
5
 
int
RECV_PIN = 11;               
6
 
int
ledPin = 10;               
7
boolean ledState = LOW;       
8
IRrecv irrecv(RECV_PIN);     
9
decode_results results;       
10
 
11
 
void
setup(){
12
  Serial.begin(9600);        
13
  irrecv.enableIRIn();        
14
  pinMode(ledPin,OUTPUT);    
15
}
16
 
17
 
void
loop() {
18
 
  if
(irrecv.decode(&results)) { 
19
      Serial.println(results.value, HEX);
20
 
    
http://www.dfrobot.com/wiki/index.php/DFRduino_Beginner_Kit_For_Arduino_V3_SKU:DFR0100
DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 ­ Robot Wiki
19/23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DFR0100 and is the answer not in the manual?

Table of Contents