{"id":27535578,"url":"https://github.com/lsartory/pdm","last_synced_at":"2026-02-21T22:30:49.481Z","repository":{"id":287733919,"uuid":"965627100","full_name":"lsartory/pdm","owner":"lsartory","description":"Pulse Density Modulator","archived":false,"fork":false,"pushed_at":"2025-04-15T18:45:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T14:26:32.435Z","etag":null,"topics":["embedded","no-std","pdm","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/pdm","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/lsartory.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-13T15:21:33.000Z","updated_at":"2025-04-15T18:45:23.000Z","dependencies_parsed_at":"2025-04-18T19:07:32.005Z","dependency_job_id":null,"html_url":"https://github.com/lsartory/pdm","commit_stats":null,"previous_names":["lsartory/pdm"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lsartory/pdm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsartory%2Fpdm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsartory%2Fpdm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsartory%2Fpdm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsartory%2Fpdm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsartory","download_url":"https://codeload.github.com/lsartory/pdm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsartory%2Fpdm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29695781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["embedded","no-std","pdm","rust"],"created_at":"2025-04-18T19:07:27.956Z","updated_at":"2026-02-21T22:30:49.476Z","avatar_url":"https://github.com/lsartory.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDM\n\nPDM (Pulse Density Modulator) is a library meant for digital-to-analog conversion in embedded systems, using a simple second-order delta sigma modulator.\nIf no hardware PWM channels are available, this is a lightweight alternative.\n\nThis can be used, for example, to modulate the intensity of an LED.\n\n\n## Features\n\nThe library offers the following features:\n* Easy to use\n* Suitable for `no_std` environments\n* No external dependencies\n* Ultra-low RAM requirements\n* Supports the following types: u8, u16, u32, u64, i8, i16, i32, i64, f32, f64\n\n\n## Limitations\n\nFor good results, the output frequency must be high and stable in relation to the modulated signal frequency.\nAn external low-pass filter may be necessary to remove noise, depending on the application.\n\n\n## Example\n\n```rust no_run\nlet mut pdm = pdm::Pdm::\u003cu8\u003e::new();\npdm.set_value(42);\nloop {\n    if pdm.update() {\n        // Set output high\n    } else {\n        // Set output low\n    }\n    // Sleep until next iteration\n}\n\n```\n\n\n## Changelog\n\n| Date       | Version | Changes                |\n|------------|---------|------------------------|\n| 2025-04-15 | 1.0.0   | Cleaner code structure |\n| 2025-04-13 | 0.1.0   | Initial release        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsartory%2Fpdm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsartory%2Fpdm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsartory%2Fpdm/lists"}