Hoogkamer / ESP32-IR-Remote-Control

C++ class for the infrared remote control and reciever module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32-IR-Remote-Control

C++ class for the infrared remote control and reciever module

Arduino IR kit

Examplecode:

#include "Arduino.h"
#include "IR.h"

#define IR_PIN  34
IR ir(IR_PIN);  // do not change the objectname, it must be "ir"

//--------------------------------------------------------------
void setup()
{
    ir.begin();  // Init InfraredDecoder
    Serial.begin(115200);
}
void loop()
{
    ir.loop();
    // do something else
    // ...
}
//--------------------------------------------------------------
//   events called from IR Library
//--------------------------------------------------------------
void ir_res(uint32_t res){
    Serial.print("ir_res: ");
    Serial.println(res);
}

void ir_number(const char* num){
    Serial.print("ir_number: ");
    Serial.println(num);
}

void ir_key(const char* key){
    Serial.print("ir_key: ");
    Serial.println(key);
}

console output (pressed # 123):

Serial Console Output

recieved codewods for this RC:

RC Code

VS1838 pins;

VS1838B Pins

About

C++ class for the infrared remote control and reciever module


Languages

Language:C++ 100.0%