mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
14 lines
214 B
Go
14 lines
214 B
Go
![]() |
package gobotFirmata
|
||
|
|
||
|
type sp struct{}
|
||
|
|
||
|
func (me sp) Write(b []byte) (int, error) {
|
||
|
return len(b), nil
|
||
|
}
|
||
|
func (me sp) Read(b []byte) (int, error) {
|
||
|
return len(b), nil
|
||
|
}
|
||
|
func (me sp) Close() error {
|
||
|
return nil
|
||
|
}
|