mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
17 lines
223 B
Go
17 lines
223 B
Go
![]() |
package gobotI2C
|
||
|
|
||
|
type TestAdaptor struct {
|
||
|
}
|
||
|
|
||
|
func (t TestAdaptor) I2cStart(byte) {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func (t TestAdaptor) I2cRead(uint16) []uint16 {
|
||
|
return []uint16{99, 1}
|
||
|
}
|
||
|
|
||
|
func (t TestAdaptor) I2cWrite([]uint16) {
|
||
|
return
|
||
|
}
|