Documentation ¶
Overview ¶
Package l9110x provides a driver to the L9110/L9110S H-bridge chip typically used to control DC motors.
Datasheet: https://www.elecrow.com/download/datasheet-l9110.pdf
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 is a motor without speed control. ia and ib are the directional pins.
type PWMDevice ¶
type PWMDevice struct {
// contains filtered or unexported fields
}
PWMDevice is a motor with speed control. ia and ib are the directional/speed PWM pins.
func NewWithSpeed ¶
NewWithSpeed returns a new PWMMotor driver that uses 2 PWM pins to control both direction and speed.
Click to show internal directories.
Click to hide internal directories.