Irremoteesp8266 Example


Example: 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); }

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable