{"id":18248561,"url":"https://github.com/besselfunct/mcp9600","last_synced_at":"2025-04-11T18:07:45.513Z","repository":{"id":65181159,"uuid":"584588093","full_name":"besselfunct/mcp9600","owner":"besselfunct","description":"MCP9600 Rust Crate","archived":false,"fork":false,"pushed_at":"2023-01-13T17:44:10.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T08:01:05.934Z","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/besselfunct.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-03T01:56:37.000Z","updated_at":"2023-01-06T15:40:36.000Z","dependencies_parsed_at":"2023-02-09T16:31:21.680Z","dependency_job_id":null,"html_url":"https://github.com/besselfunct/mcp9600","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besselfunct%2Fmcp9600","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besselfunct%2Fmcp9600/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besselfunct%2Fmcp9600/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/besselfunct%2Fmcp9600/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/besselfunct","download_url":"https://codeload.github.com/besselfunct/mcp9600/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248182080,"owners_count":21060893,"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":[],"created_at":"2024-11-05T09:37:35.472Z","updated_at":"2025-04-11T18:07:45.493Z","avatar_url":"https://github.com/besselfunct.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mcp9600\nBasic I2C driver for the Microchip Technology MCP960X Thermocouple Amplifier Chip\n---\n## ! This crate is a WIP and has minimal functionality !\n\nCurrently, the following features are implemented:\n- Reading the device ID\n- Configuring the Sensor portion of the device\n- Configuring the measurement profile of the device\n- Performing basic hot junction temperature measurements (results in an f32)\n\nTODO:\n- Read the status register and pass the result to the user\n- Enable configuration of the Alert registers\n- Documentation\n\nExample use:\n```rust\nuse mcp9600::*;\n\n// Instantiate an i2c peripheral here. Depends on hardware ecosystem\n\nlet mut sensor = MCP9600::new(i2c, DeviceAddr::AD0)?; // If the Addr pin is tied to ground\n\n// Configure the thermocouple type, and filtercoefficient\nsensor.\n  set_sensor_configuration(\n    ThermocoupleType::TypeK,\n    FilterCoefficient::FilterMedium,\n    )?;\n\n// Configure the measurement profile of the device\nsensor.\n  set_device_configuration(\n    ColdJunctionResolution::High,\n    ADCResolution::Bit18,\n    BurstModeSamples::Sample1,\n    ShutdownMode::NormalMode\n    )?;\n\n// Perform a measurement\nloop {\n  let data = sensor.read_hot_junction();\n  println!(\"Temperature is: {:?}C\", data.unwrap());\n  // Delay by some amount\n  // The max measurement frequency is primarily determined by the ADC resolution\n  // More details can be found in the datasheet for the MCP9600: (https://www.microchip.com/en-us/product/MCP9600)\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesselfunct%2Fmcp9600","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbesselfunct%2Fmcp9600","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesselfunct%2Fmcp9600/lists"}