//go:build !arm && !arm64 package PinControlService type PinEmu struct { state State number int } func (p *PinEmu) Toggle() { if p.state == LowState { p.state = HighState } else { p.state = LowState } } func (p *PinEmu) High() { p.state = HighState } func (p *PinEmu) Low() { p.state = LowState } func (*PinEmu) Input() {} func (*PinEmu) Output() {} func (*PinEmu) Detect(Edge) {} func (*PinEmu) PullUp() {} func (*PinEmu) PullDown() {} func (*PinEmu) PullOff() {} func (p *PinEmu) Read() State { return p.state } func (*PinEmu) EdgeDetected() bool { return false } type HardwarePin struct { Pin PinEmu } func NewHardwarePin(num int) HardwarePinInterface { return &PinEmu{state: LowState, number: num} } func HardwarePinOpen() error { return nil }