Versions in this module Expand all Collapse all v0 v0.10.2 Aug 12, 2022 Changes in this version + const GPIOOFF + const GPIOOn + const MotorStateBrake + const MotorStateIdle + const MotorStateToPos0 + const MotorStateToPos1 + const Position0 + const Position1 + const PositionUnknown + func StateToString(state State) string + func StatesEqual(sm1, sm2 State) bool + type GPIOState bool + type Id uint16 + type MotorState uint8 + type Position uint8 + type State interface + GPIO0State func() GPIOState + GPIO1State func() GPIOState + Id func() Id + MotorState func() MotorState + Position func() Position + UpdateTime func() time.Time + func NewState(id Id, pos Position, m MotorState, g0, g1 GPIOState) State