mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-02 22:17:12 +08:00
17 lines
210 B
Go
17 lines
210 B
Go
package i2c
|
|
|
|
type TestAdaptor struct {
|
|
}
|
|
|
|
func (t TestAdaptor) I2cStart(byte) {
|
|
return
|
|
}
|
|
|
|
func (t TestAdaptor) I2cRead(uint) []byte {
|
|
return []byte{99, 1}
|
|
}
|
|
|
|
func (t TestAdaptor) I2cWrite([]byte) {
|
|
return
|
|
}
|