Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2024 Changes in this version + const Speed100 + const Speed20 + const Speed40 + const Speed60 + const Speed80 + const StepAngle + var Sequence28BYJ48 = [8][4]uint8 + func GetSteps(angle uint) uint + func Wait(t time.Duration) + type Direction int8 + const DirectionClock + const DirectionCounterClock + func (d Direction) Float64() float64 + func (d Direction) Int() int + type OptFunc func(options *Options) + func SetGPIOs(pins [4]int) OptFunc + type Options struct + type Speed uint8 + func (s Speed) Float64() float64 + func (s Speed) Uint() uint + type StepperMotor struct + func NewStepperMotor(opts ...OptFunc) *StepperMotor + func (s *StepperMotor) GetCurrentPosition() int + func (s *StepperMotor) GetNumOfSteps() uint + func (s *StepperMotor) GetThreshold() uint + func (s *StepperMotor) IsRunning() bool + func (s *StepperMotor) Run(direction Direction, angle uint, speed Speed) + func (s *StepperMotor) SetThreshold(threshold uint)