adjust pca address

This commit is contained in:
mwojcik 2022-02-08 16:39:12 +08:00
parent 3efc682bd6
commit bc41b91192
1 changed files with 2 additions and 2 deletions

View File

@ -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)?;