mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
ce81b66fe2
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 lines
267 B
Go
10 lines
267 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
|
|
}
|