{"id":21949353,"url":"https://github.com/fhennig/pi_ir_remote","last_synced_at":"2025-04-23T01:03:28.845Z","repository":{"id":57655215,"uuid":"313441342","full_name":"fhennig/pi_ir_remote","owner":"fhennig","description":"A crate to read infrared signals from a 44-button LED remote.","archived":false,"fork":false,"pushed_at":"2021-07-20T13:14:01.000Z","size":271,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T20:43:55.659Z","etag":null,"topics":["infrared","raspberry-pi","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fhennig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T22:19:48.000Z","updated_at":"2025-03-25T17:29:39.000Z","dependencies_parsed_at":"2022-09-01T01:40:40.240Z","dependency_job_id":null,"html_url":"https://github.com/fhennig/pi_ir_remote","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhennig%2Fpi_ir_remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhennig%2Fpi_ir_remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhennig%2Fpi_ir_remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhennig%2Fpi_ir_remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhennig","download_url":"https://codeload.github.com/fhennig/pi_ir_remote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250349044,"owners_count":21415913,"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":["infrared","raspberry-pi","rust"],"created_at":"2024-11-29T05:28:59.305Z","updated_at":"2025-04-23T01:03:28.797Z","avatar_url":"https://github.com/fhennig.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IR Remote Receiver\n\n[crates.io](https://crates.io/crates/pi_ir_remote) - [docs.rs](https://docs.rs/pi_ir_remote/0.1.0/pi_ir_remote/) - [GitHub](https://github.com/fhennig/pi_ir_remote)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"44-button IR remote\" src=\"https://github.com/fhennig/pi_ir_remote/blob/master/pi_remote.png?raw=true\"/\u003e\n\u003c/p\u003e\n\nThis crate provides a signal decoder for the commonly found 44-button\ninfra red remote used commonly with LED strips.  When an IR sensor is\nconnected to a GPIO pin, this crate can decode the IR signals into\nwhich button was pressed.\n\n## Usage\n\nThis will read signals on GPIO 4 and print them:\n\n    use pi_ir_remote::read_ir_remote;\n    use pi_ir_remote::PrintSignalHandler;\n\n    fn main() {\n        let handler = PrintSignalHandler::new();\n        read_ir_remote(4, Box::new(handler));\n    }\n\nYou can make your own signal handler by implementing the SignalHandler\ntrait:\n\n    pub trait SignalHandler {\n        fn handle_signal(\u0026mut self, signal: \u0026Signal);\n    }\n\n## How it works\n\nThe IR remote sends pulse length encoded signals.  Among other special\npulses, there are a short and long pulse, corresponding to 0 and 1,\nallowing the transmission of binary data.\n\nEvery button is associated to a 32 bit word.  This library includes\nthe mapping of binary codes to buttons in the Signal enum.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhennig%2Fpi_ir_remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhennig%2Fpi_ir_remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhennig%2Fpi_ir_remote/lists"}