{"id":20446280,"url":"https://github.com/rust-embedded/rust-i2cdev","last_synced_at":"2025-05-14T19:06:36.610Z","repository":{"id":36706514,"uuid":"41013061","full_name":"rust-embedded/rust-i2cdev","owner":"rust-embedded","description":"Rust library for interfacing with i2c devices under Linux","archived":false,"fork":false,"pushed_at":"2025-03-04T21:00:16.000Z","size":2294,"stargazers_count":219,"open_issues_count":5,"forks_count":55,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-13T15:07:24.924Z","etag":null,"topics":["embedded","i2c","i2c-bus","linux","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-embedded.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-19T04:21:00.000Z","updated_at":"2025-04-06T04:43:04.000Z","dependencies_parsed_at":"2025-01-03T17:11:33.449Z","dependency_job_id":"94cc47b2-92c8-4de9-a9db-0c95e32f13a4","html_url":"https://github.com/rust-embedded/rust-i2cdev","commit_stats":{"total_commits":165,"total_committers":26,"mean_commits":6.346153846153846,"dds":0.5757575757575757,"last_synced_commit":"499e902b4d51cd9b487cf286b1641b47e322c6f6"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Frust-i2cdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Frust-i2cdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Frust-i2cdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Frust-i2cdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-embedded","download_url":"https://codeload.github.com/rust-embedded/rust-i2cdev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732484,"owners_count":21152852,"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":["embedded","i2c","i2c-bus","linux","rust"],"created_at":"2024-11-15T10:18:50.033Z","updated_at":"2025-04-13T15:07:33.856Z","avatar_url":"https://github.com/rust-embedded.png","language":"Rust","readme":"# Rust I2cdev\n\n[![Build Status](https://github.com/rust-embedded/rust-i2cdev/workflows/CI/badge.svg)](https://github.com/rust-embedded/rust-i2cdev/actions)\n[![Version](https://img.shields.io/crates/v/i2cdev.svg)](https://crates.io/crates/i2cdev)\n[![License](https://img.shields.io/crates/l/i2cdev.svg)](https://github.com/rust-embedded/rust-i2cdev/blob/master/README.md#license)\n![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.60+-blue.svg)\n\n[Documentation](https://docs.rs/i2cdev)\n\nThe Rust `i2cdev` crate seeks to provide full access to the Linux i2cdev\ndriver interface in Rust without the need to wrap any C code or directly make\nlow-level system calls.  The documentation for the i2cdev interace can\nbe found at https://www.kernel.org/doc/Documentation/i2c/dev-interface and\nin the [lm-sensors projects](http://www.lm-sensors.org/).\n\nDevice driver developers should consider building on top of the\n[embedded-hal](https://crates.io/crates/embedded-hal) traits rather than\ndirectly coupling to this library. An implementation of those generic traits for\nLinux can be found in\n[linux-embedded-hal](https://crates.io/crates/linux-embedded-hal) which, at\npresent, uses this crate as the backend for I2C.\n\n## Example/API\n\nThe source includes an example of using the library to talk to a Wii\nNunchuck (which has an i2c interface).\n[Go View the Example](https://github.com/rust-embedded/rust-i2cdev/blob/master/examples/nunchuck.rs).\n\nThe [Documentation](https://docs.rs/i2cdev) contains a quick overview of how to get started with an i2c device.\n\nIn addition to the Read/Write traits, the following methods are\navailable via the [I2CDevice trait](https://rust-embedded.github.io/rust-i2cdev/i2cdev/core/trait.I2CDevice.html).\n\n## Features\n\nThe following features are implemented and planned for the library:\n\n- [x] Implement the Read trait\n- [x] Implement the Write trait\n- [x] Implement SMBus Methods\n- [x] Add Tests/Example for SMBus Methods\n- [x] Add sensor library for handy sensors (and examples)\n- [ ] Add higher-level APIs/Macros for simplifying access to devices\n      with large register sets\n- [ ] Add Support for Non-SMBus ioctl methods\n- [ ] Add examples for non-smbus ioctl methods\n- [ ] Unit Testing\n\n## Cross Compiling\n\nMost likely, the machine you are running on is not your development\nmachine (although it could be).  In those cases, you will need to\ncross-compile.  See \u003chttps://github.com/cross-rs/cross\u003e for pointers.\n\n## Minimum Supported Rust Version (MSRV)\n\nThis crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might*\ncompile with older versions but that may change in any new patch release.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n  http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([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\n## Code of Conduct\n\nContribution to this crate is organized under the terms of the [Rust Code of\nConduct][CoC], the maintainer of this crate, the [Embedded Linux Team][team], promises\nto intervene to uphold that code of conduct.\n\n[CoC]: CODE_OF_CONDUCT.md\n[team]: https://github.com/rust-embedded/wg#the-embedded-linux-team\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Frust-i2cdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-embedded%2Frust-i2cdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Frust-i2cdev/lists"}