Add destroy()
function to release I2C
This commit is contained in:
parent
1a76174582
commit
8e7bec8c41
1 changed files with 4 additions and 0 deletions
|
@ -266,4 +266,8 @@ where
|
|||
let bytes = [address.0, value[0], value[1], value[2]];
|
||||
self.i2c.write(self.address, &bytes)
|
||||
}
|
||||
|
||||
pub fn destroy(self) -> I2C {
|
||||
self.i2c
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue