mirror of
https://github.com/kidoman/embd
synced 2025-07-03 11:57:38 +02:00
add documentation
This commit is contained in:
parent
a35692aabb
commit
0002d02c28
8 changed files with 117 additions and 8 deletions
4
i2c.go
4
i2c.go
|
@ -52,12 +52,12 @@ func InitI2C() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// CloseI2C gracefully closes the I2C driver.
|
||||
// CloseI2C releases resources associated with the I2C driver.
|
||||
func CloseI2C() error {
|
||||
return i2cDriverInstance.Close()
|
||||
}
|
||||
|
||||
// NewI2CBus returns a I2CBus corresponding to the provided address.
|
||||
// NewI2CBus returns a I2CBus.
|
||||
func NewI2CBus(l byte) I2CBus {
|
||||
return i2cDriverInstance.Bus(l)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue