summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2020-06-21 23:44:18 +0200
committerDiego Barrios Romero <eldruin@gmail.com>2020-06-21 23:44:18 +0200
commitc034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e (patch)
treec887b493fe85b2e2cd8d7d81728093e142c50c7e
parent6726d11b249a9f02db429bbe730a970667a4f46c (diff)
downloadads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.tar.gz
ads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.tar.xz
ads1x1x-async-c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e.zip
Improve documentation example
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0c28c18..418fc46 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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);
//! ```