adjust pca address
This commit is contained in:
parent
3efc682bd6
commit
bc41b91192
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user