ESP32-IR-Remote-Control
所属分类:Dart语言编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2022-07-04 22:01:38
上 传 者:
sh-1993
说明: 用于红外遥控器和接收器模块的C++类
(C++ class for the infrared remote control _and_ reciever module)
文件列表:
images/ (0, 2023-07-12)
images/IR_ConsoleOutput.jpg (3775, 2023-07-12)
images/Infrarot IR Empfänger Modul Wireless Remote Control Kit für Arduino.jpg (8337, 2023-07-12)
images/Pulse Sequence Timing Diagram 1.jpg (18404, 2023-07-12)
images/Pulse Sequence Timing Diagram 2.jpg (24241, 2023-07-12)
images/RemoteControl.jpg (47873, 2023-07-12)
images/VS1838B Pins.jpg (9797, 2023-07-12)
keywords.txt (556, 2023-07-12)
library.properties (300, 2023-07-12)
src/ (0, 2023-07-12)
src/IR.cpp (6088, 2023-07-12)
src/IR.h (1068, 2023-07-12)
# ESP32-IR-Remote-Control
C++ class for the infrared remote control and reciever module
![Arduino IR kit](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/Infrarot%20IR%20Empf%C3%A4nger%20Modul%20Wireless%20Remote%20Control%20Kit%20f%C3%BCr%20Arduino.jpg)
### Examplecode:
```` c++
#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](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/IR_ConsoleOutput.jpg)
### recieved codewods for this RC:
![RC Code](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/RemoteControl.jpg)
### VS1838 pins;
![VS1838B Pins](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/VS1838B%20Pins.jpg)
近期下载者:
相关文件:
收藏者: