File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
//! # i2cdev
10
10
//!
11
11
//! The `i2cdev` crate provides a safe interface for interface
12
- //! with i2c devices under Linux. The API wraps the Linux
13
- //! kernel interface for interacting with i2c in userspace:
14
- //! https://www.kernel.org/doc/Documentation/i2c/dev-interface
12
+ //! with i2c devices under Linux. The API wraps the [Linux
13
+ //! kernel interface for interacting with i2c in userspace][kernel-doc].
14
+ //!
15
+ //! [kernel-doc]: https://www.kernel.org/doc/Documentation/i2c/dev-interface
16
+ //!
17
+ //! ## Examples
18
+ //!
19
+ //! ### Using the SMBus methods to read from a Wii Nunchuk
15
20
//! ```rust,no_run
16
21
//! extern crate i2cdev;
17
22
//!
42
47
//! }
43
48
//! ```
44
49
//!
50
+ //! ### Using the `transfer` API with an individual device
45
51
//! ```rust,no_run
46
52
//! extern crate i2cdev;
47
53
//!
65
71
//! }
66
72
//! ```
67
73
//!
74
+ //! ### Using `transfer` with `LinuxI2CBus`
68
75
//! ```rust,no_run
69
76
//! extern crate i2cdev;
70
77
//!
You can’t perform that action at this time.
0 commit comments