{"id":28621683,"url":"https://github.com/schreibfaul1/ESP32-IR-Remote-Control","last_synced_at":"2025-06-12T05:06:04.105Z","repository":{"id":111157220,"uuid":"109000396","full_name":"schreibfaul1/ESP32-IR-Remote-Control","owner":"schreibfaul1","description":"C++ class for the infrared remote control and reciever module ","archived":false,"fork":false,"pushed_at":"2025-01-05T16:14:14.000Z","size":446,"stargazers_count":35,"open_issues_count":3,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T21:21:38.666Z","etag":null,"topics":["arduino","esp32","infrared-control","vs1838"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schreibfaul1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-31T13:34:54.000Z","updated_at":"2025-02-14T22:49:43.000Z","dependencies_parsed_at":"2024-01-28T22:22:10.628Z","dependency_job_id":"6f23502e-fcdd-4961-9857-465cf1ab5796","html_url":"https://github.com/schreibfaul1/ESP32-IR-Remote-Control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schreibfaul1/ESP32-IR-Remote-Control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schreibfaul1%2FESP32-IR-Remote-Control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schreibfaul1%2FESP32-IR-Remote-Control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schreibfaul1%2FESP32-IR-Remote-Control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schreibfaul1%2FESP32-IR-Remote-Control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schreibfaul1","download_url":"https://codeload.github.com/schreibfaul1/ESP32-IR-Remote-Control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schreibfaul1%2FESP32-IR-Remote-Control/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259402052,"owners_count":22851868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","esp32","infrared-control","vs1838"],"created_at":"2025-06-12T05:02:00.422Z","updated_at":"2025-06-12T05:06:04.096Z","avatar_url":"https://github.com/schreibfaul1.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# ESP32-IR-Remote-Control\nC++ class for the infrared remote control and reciever module\n\n![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)\n\n### Examplecode:\n\n```` c++\n#include \"Arduino.h\"\n#include \"src/IR.h\"\n\n#define IR_PIN  4\nIR ir(IR_PIN);  // do not change the objectname, it must be \"ir\"\n\n    uint8_t ir_button[20] = {0x52,  // 0     (numbers)                       idx 00\n                             0x16,  // 1     (numbers)                       idx 01\n                             0x19,  // 2     (numbers)                       idx 02\n                             0x0d,  // 3     (numbers)                       idx 03\n                             0x0c,  // 4     (numbers)                       idx 04\n                             0x18,  // 5     (numbers)                       idx 05\n                             0x5e,  // 6     (numbers)                       idx 06\n                             0x08,  // 7     (numbers)                       idx 07\n                             0x1c,  // 8     (numbers)                       idx 08\n                             0x5a,  // 9     (numbers)                       idx 09\n                             0x42,  // #     (not a number, short pressed)   idx 10\n                             0x4a,  // *     (not a number, short pressed)   idx 11\n                             0x44,  // left  (not a number, short pressed)   idx 12\n                             0x43,  // right (not a number, short pressed)   idx 13\n                             0x46,  // up    (not a number, short pressed)   idx 14\n                             0x15,  // down  (not a number, short pressed)   idx 15\n                             0x40,  // OK    (not a number, short pressed)   idx 16\n                             0x00,  //       (not a number, short pressed)   idx 17\n                             0x00,  //       (not a number, short pressed)   idx 18\n                             0x00,  //       (not a number, short pressed)   idx 19\n                             0x40,  // OK    (not a number,  long pressed)   idx 20\n                             0x00,  //       (not a number,  long pressed)   idx 21\n                             0x00,  //       (not a number,  long pressed)   idx 22\n                             0x00,  //       (not a number,  long pressed)   idx 23\n                             0x00,  //       (not a number,  long pressed)   idx 24\n                             0x00,  //       (not a number,  long pressed)   idx 25\n                             0x00,  //       (not a number,  long pressed)   idx 26\n                             0x00,  //       (not a number,  long pressed)   idx 27\n                             0x00,  //       (not a number,  long pressed)   idx 28\n                             0x00,  //       (not a number,  long pressed)   idx 29\n    };\n\n//--------------------------------------------------------------\nvoid setup(){\n    Serial.begin(115200);\n    ir.begin();\n    for(uint8_t i = 0; i \u003c 20; i++) {\n        ir.set_irButtons(i, ir_button[i]);\n    }\n    ir.set_irAddress(0x00);\n}\n\nvoid loop(){\n    ir.loop();\n    // do something else\n    // ...\n}\n//--------------------------------------------------------------\n//   events called from IR Library\n//--------------------------------------------------------------\nvoid ir_res(uint32_t res){\n    Serial.print(\"ir_res: \");\n    Serial.println(res);\n}\n\nvoid ir_number(uint16_t num){\n    Serial.print(\"ir_number: \");\n    Serial.println(num);\n}\n\nvoid ir_short_key(uint8_t key){\n    Serial.print(\"ir_key: \");\n    Serial.println(key);\n}\n\nvoid ir_long_key(int8_t key){\n    Serial.print(\"long pressed key nr: \");\n    Serial.println(key);\n}\n\nvoid ir_code(uint8_t addr, uint8_t cmd){\n    Serial.printf(\"ir_code: ..  IR address 0x%02x, IR command 0x%02x\\n\", addr, cmd);\n}\n````\n### console output (pressed # 123):\n\n![Serial Console Output](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/IR_ConsoleOutput.jpg)\n\n### recieved codewods for this RC:\n\n![RC Code](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/RemoteControl.jpg)\n\n### VS1838 pins;\n\n![VS1838B Pins](https://github.com/schreibfaul1/ESP32-IR-Remote-Control/blob/master/images/VS1838B%20Pins.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschreibfaul1%2FESP32-IR-Remote-Control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschreibfaul1%2FESP32-IR-Remote-Control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschreibfaul1%2FESP32-IR-Remote-Control/lists"}