package
Version:
v0.0.0-...-76dc376
Opens a new window with list of versions in this module.
Published: Nov 29, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
Documentation
¶
Motor is a driver for a stepper motor
func New(stepPin, stepPwmID, dirPin, sleepPin byte) *Motor
New creates a new Motor for a stepper motor drived with GPIOs
Disable disables the torque
Enable enables the torque
Move makes the motor rotate in the given direction at the specified speed for a given duration -- make sure to Enable() the motor first
func (m Motor) Unexport()
Unexport unexports the GPIO used by to drive the motor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.