diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 23:44:18 +0200 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2020-06-21 23:44:18 +0200 |
commit | c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e (patch) | |
tree | c887b493fe85b2e2cd8d7d81728093e142c50c7e | |
parent | 6726d11b249a9f02db429bbe730a970667a4f46c (diff) | |
download | ads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.tar.gz ads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.tar.xz ads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.zip |
Improve documentation example
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,8 +106,8 @@ //! use ads1x1x::{Ads1x1x, SlaveAddr}; //! //! let dev = I2cdev::new("/dev/i2c-1").unwrap(); -//! let (a1, a0) = (true, false); -//! let address = SlaveAddr::Alternative(a1, a0); +//! let (bit1, bit0) = (true, false); // last two bits of address +//! let address = SlaveAddr::Alternative(bit1, bit0); //! let adc = Ads1x1x::new_ads1013(dev, address); //! ``` |