adjust pca address

This commit is contained in:
mwojcik 2022-02-08 16:39:12 +08:00
parent 3efc682bd6
commit bc41b91192

View File

@ -153,11 +153,11 @@ impl I2c {
self.i2cswr_o(true); self.i2cswr_o(true);
self.delay_us(10); self.delay_us(10);
let pca954x_addr = 0x70; let pca954x_addr = 0x71;
self.start()?; self.start()?;
// read the config register // read the config register
if !self.write(pca954x_addr << 1 | 0x01)? { if !self.write(pca954x_addr)? {
return Err("PCA954X failed to ack read address"); return Err("PCA954X failed to ack read address");
} }
let config = self.read(true)?; let config = self.read(true)?;