easystepper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Simple driver to rotate a 4-wire stepper motor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

Device holds the pins and the delay between steps

func New

func New(pin1, pin2, pin3, pin4 machine.Pin, steps int32, rpm int32) Device

New returns a new easystepper driver given 4 pins numbers (not pin object), number of steps and rpm

func (*Device) Move

func (d *Device) Move(steps int32)

Move rotates the motor the number of given steps (negative steps will rotate it the opposite direction)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL