{"id":24956257,"url":"https://github.com/daschr/esp_pwm_reader","last_synced_at":"2025-07-03T13:07:49.623Z","repository":{"id":208056726,"uuid":"720700427","full_name":"daschr/esp_pwm_reader","owner":"daschr","description":"Wrapper around the mcpwm capture module for reading pwm signals.","archived":false,"fork":false,"pushed_at":"2023-11-19T13:42:07.000Z","size":1100,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T19:04:57.463Z","etag":null,"topics":["capture","esp-idf","esp32","pwm-signal","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/daschr.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":"2023-11-19T10:19:51.000Z","updated_at":"2025-04-05T00:19:14.000Z","dependencies_parsed_at":"2024-11-19T02:03:21.180Z","dependency_job_id":null,"html_url":"https://github.com/daschr/esp_pwm_reader","commit_stats":null,"previous_names":["daschr/esp_pwm_reader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daschr/esp_pwm_reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fesp_pwm_reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fesp_pwm_reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fesp_pwm_reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fesp_pwm_reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daschr","download_url":"https://codeload.github.com/daschr/esp_pwm_reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fesp_pwm_reader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263331779,"owners_count":23450157,"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":["capture","esp-idf","esp32","pwm-signal","rust"],"created_at":"2025-02-03T06:28:15.407Z","updated_at":"2025-07-03T13:07:49.596Z","avatar_url":"https://github.com/daschr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp_pwm_reader\nWrapper around the mcpwm capture module for reading pwm signals.\n# Documentation\n- see \u003chttps://daschr.github.io/esp_pwm_reader/esp_pwm_reader/index.html\u003e\n  \n# Usage\n- you need to create a capture timer which can then be used by multiple channel readers\n- f.e.\n  ```\n  use channel_reader::{CaptureTimer, ChannelReader};\n  use esp_idf_hal::delay::FreeRtos;\n\n  use esp_idf_sys::{\n    gpio_num_t_GPIO_NUM_16, gpio_num_t_GPIO_NUM_17\n  };\n\n  fn main() {\n    let capture_timer = CaptureTimer::new(0).unwrap();\n\n    let channel1 = ChannelReader::new(\u0026capture_timer, gpio_num_t_GPIO_NUM_16).unwrap();\n    let channel2 = ChannelReader::new(\u0026capture_timer, gpio_num_t_GPIO_NUM_17).unwrap();\n\n    loop {\n        println!(\n            \"ch1: {} ch2: {}\",\n            channel1.get_value(),\n            channel2.get_value()\n        );\n\n        FreeRtos::delay_ms(11);\n    }\n  }\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschr%2Fesp_pwm_reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaschr%2Fesp_pwm_reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschr%2Fesp_pwm_reader/lists"}