package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Aug 4, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package uln28byj implements a GPIO based
stepper motor (model: 28byj-48) with uln2003 controler.
type Config struct {
Pins PinConfig `json:"pins"`
BoardName string `json:"board"`
TicksPerRotation int `json:"ticks_per_rotation"`
}
Config describes the configuration of a motor.
Validate ensures all parts of the config are valid.
type PinConfig struct {
In1 string `json:"in1"`
In2 string `json:"in2"`
In3 string `json:"in3"`
In4 string `json:"in4"`
}
PinConfig defines the mapping of where motor are wired.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.