{"id":23097803,"url":"https://github.com/zandemax/mcp346x-rs","last_synced_at":"2025-09-10T12:36:38.083Z","repository":{"id":65676394,"uuid":"579115987","full_name":"zandemax/mcp346x-rs","owner":"zandemax","description":"Rust library for the Microchip MCP346x family of ADCs","archived":false,"fork":false,"pushed_at":"2023-02-03T17:04:43.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T06:12:02.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zandemax.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}},"created_at":"2022-12-16T17:44:51.000Z","updated_at":"2022-12-16T17:46:12.000Z","dependencies_parsed_at":"2023-02-18T09:16:08.119Z","dependency_job_id":null,"html_url":"https://github.com/zandemax/mcp346x-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zandemax/mcp346x-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandemax%2Fmcp346x-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandemax%2Fmcp346x-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandemax%2Fmcp346x-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandemax%2Fmcp346x-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zandemax","download_url":"https://codeload.github.com/zandemax/mcp346x-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandemax%2Fmcp346x-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274463216,"owners_count":25290113,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-16T22:59:11.526Z","updated_at":"2025-09-10T12:36:38.010Z","avatar_url":"https://github.com/zandemax.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP346x Sigma-Delta ADC \n\n[![crates.io](https://img.shields.io/crates/v/mcp346x)](https://crates.io/crates/mcp346x)\n[![docs.rs](https://img.shields.io/docsrs/mcp346x)](https://docs.rs/mcp346x)\n\nThis crate contains a platform-agnostic driver for the MCP346[1/2/4] Sigma-Delta ADC, using the [`embedded-hal`](https://github.com/rust-embedded/embedded-hal) traits.\n\nCurrently, you can:\n\n- Initialize the device\n- Configure Input MUX and IRQ Pullup\n- Set the conversion or power down mode\n- Obtain measurements\n\n### [Documentation](https://docs.rs/mcp346x)\n\n\n## Usage\n\n### Single Measurement\n\n```rust ignore\nuse mcp346x::*;\n\nlet spi_pins = (sck, miso, mosi);\nlet spi = Spi::new(p.SPI0, spi_pins, Frequency::K500, MODE_0);\n\nlet address = 0b01; // This is the default address for most chips\nlet mut adc = MCP346x::new(spi, address).into_continuous_mode()?;\n\nadc.set_clock_source(mcp346x::ClockSource::Internal)?;\nadc.set_irq_internal_pullup(true)?;\n\nlet voltage = adc.measure()?;\n```\n\n## Status\n\n- [x] Initialization\n- [x] Powerdown/wakeup/conversion\n- [x] Take Measurements\n- [x] Input MUX configuration\n- [ ] SCAN mode\n- [ ] Expose other Configurations\n- [ ] Communication CRC checksums\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzandemax%2Fmcp346x-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzandemax%2Fmcp346x-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzandemax%2Fmcp346x-rs/lists"}