From bc41b9119226180d6152df73c182d56870efbdc2 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Tue, 8 Feb 2022 16:39:12 +0800 Subject: [PATCH] adjust pca address --- libboard_zynq/src/i2c/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libboard_zynq/src/i2c/mod.rs b/libboard_zynq/src/i2c/mod.rs index 80e76d2..9ac8a33 100644 --- a/libboard_zynq/src/i2c/mod.rs +++ b/libboard_zynq/src/i2c/mod.rs @@ -153,11 +153,11 @@ impl I2c { self.i2cswr_o(true); self.delay_us(10); - let pca954x_addr = 0x70; + let pca954x_addr = 0x71; self.start()?; // read the config register - if !self.write(pca954x_addr << 1 | 0x01)? { + if !self.write(pca954x_addr)? { return Err("PCA954X failed to ack read address"); } let config = self.read(true)?;