mirror of
https://github.com/kidoman/embd
synced 2025-04-11 17:12:13 +02:00
doc: fixed mixed up comments
This commit is contained in:
parent
db5c9abb2a
commit
48c26358bd
4
i2c.go
4
i2c.go
@ -5,9 +5,9 @@ package embd
|
|||||||
// I2CBus interface is used to interact with the I2C bus.
|
// I2CBus interface is used to interact with the I2C bus.
|
||||||
type I2CBus interface {
|
type I2CBus interface {
|
||||||
// ReadByte reads a byte from the given address.
|
// ReadByte reads a byte from the given address.
|
||||||
ReadBytes(addr byte, num int) (value []byte, err error)
|
|
||||||
// ReadByte reads a slice of bytes from the given address.
|
|
||||||
ReadByte(addr byte) (value byte, err error)
|
ReadByte(addr byte) (value byte, err error)
|
||||||
|
// ReadBytes reads a slice of bytes from the given address.
|
||||||
|
ReadBytes(addr byte, num int) (value []byte, err error)
|
||||||
// WriteByte writes a byte to the given address.
|
// WriteByte writes a byte to the given address.
|
||||||
WriteByte(addr, value byte) error
|
WriteByte(addr, value byte) error
|
||||||
// WriteBytes writes a slice bytes to the given address.
|
// WriteBytes writes a slice bytes to the given address.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user