1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-04 22:17:39 +08:00
2014-11-29 12:10:23 -08:00

27 lines
423 B
Go

package i2c
import (
"errors"
"github.com/hybridgroup/gobot"
)
var (
ErrEncryptedBytes = errors.New("Encrypted bytes")
ErrNotEnoughBytes = errors.New("Not enough bytes read")
)
const (
Error = "error"
Joystick = "joystick"
C = "c"
Z = "z"
)
type I2c interface {
gobot.Adaptor
I2cStart(address byte) (err error)
I2cRead(len uint) (data []byte, err error)
I2cWrite(buf []byte) (err error)
}