mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-29 13:49:14 +08:00
16 lines
419 B
Go
16 lines
419 B
Go
![]() |
package gobotGPIO
|
||
|
|
||
|
type TestAdaptor struct{}
|
||
|
|
||
|
func (t TestAdaptor) AnalogWrite(string, byte) {}
|
||
|
func (t TestAdaptor) DigitalWrite(string, byte) {}
|
||
|
func (t TestAdaptor) ServoWrite(string, byte) {}
|
||
|
func (t TestAdaptor) PwmWrite(string, byte) {}
|
||
|
func (t TestAdaptor) InitServo() {}
|
||
|
func (t TestAdaptor) AnalogRead(string) int {
|
||
|
return 99
|
||
|
}
|
||
|
func (t TestAdaptor) DigitalRead(string) int {
|
||
|
return 1
|
||
|
}
|