Search
 
SCRIPT & CODE EXAMPLE
 

CPP

irremoteesp8266 example

#include <IRremoteESP8266.h>
 
int RECV_PIN = D4; //an IR detector connected to D4
 
IRrecv irrecv(RECV_PIN);
 
decode_results results;
 
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}
 
void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
  delay(100);
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: compile c++ MPI Program 
Cpp :: declare a structer in cpp 
Cpp :: arraylist equivalent cpp 
Cpp :: intage1 was not declared in this scope C++ 
Cpp :: online compiler cpp 
Cpp :: max stack 
Cpp :: double pointers C++ 
Cpp :: is palindrom 
Cpp :: c++ shift array to the right 
Cpp :: how to append two vectors in c++ 
Cpp :: how to create a structure c++ 
Cpp :: loop in c++ 
Cpp :: c++ copy string 
Cpp :: pre increment vs post increment c++ 
Cpp :: convert c++ to mips assembly code online 
Cpp :: c++ how to skip the last element of vector 
C :: find string in all files powershell 
C :: boolean in c 
C :: c get time 
C :: scanf ignore new line 
C :: send http request in C 
C :: addition of two matrix in c 
C :: C percentage program 
C :: c printf uint32_t 
C :: how to print the first character of a string in c 
C :: typedef pointer 
C :: strong number in c 
C :: C Program to Find Largest and Smallest Number among N 
C :: how to get the ascii value of a character in c 
C :: star pattern in c 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =