mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
27 lines
470 B
Go
27 lines
470 B
Go
//go:build dummy
|
|
|
|
package roverd
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
)
|
|
|
|
type GPIOToggle struct {
|
|
name string
|
|
}
|
|
|
|
func NewGPIOToggle(name string, cfg GPIOToggleConfig, logger *log.Logger) (*GPIOToggle, error) {
|
|
return nil, fmt.Errorf("%s not supported in dummy build", name)
|
|
}
|
|
|
|
func (g *GPIOToggle) Close() {}
|
|
|
|
func (g *GPIOToggle) HandleAction(action string) error {
|
|
return fmt.Errorf("%s not supported in dummy build", g.name)
|
|
}
|
|
|
|
func (g *GPIOToggle) On() bool {
|
|
return false
|
|
}
|