Files
drivers/i2c.go
T
2023-07-02 18:30:11 +02:00

10 lines
273 B
Go

package drivers
// I2C represents an I2C bus. It is notably implemented by the
// machine.I2C type.
type I2C interface {
// ReadRegister(addr uint8, r uint8, buf []byte) error
// WriteRegister(addr uint8, r uint8, buf []byte) error
Tx(addr uint16, w, r []byte) error
}