Discover Packages
go.viam.com/rdk
components
motor
gpiostepper
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 20, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package gpiostepper implements a GPIO based stepper motor.
type Config struct {
Pins PinConfig `json:"pins"`
BoardName string `json:"board"`
StepperDelay uint `json:"stepper_delay,omitempty"`
TicksPerRotation int `json:"ticks_per_rotation"`
}
Config describes the configuration of a motor.
type PinConfig struct {
Step string `json:"step"`
Direction string `json:"dir"`
EnablePinHigh string `json:"en_high,omitempty"`
EnablePinLow string `json:"en_low,omitempty"`
}
PinConfig defines the mapping of where motor are wired.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.