Documentation ¶
Overview ¶
Package picoborgrev allows users to control pico borg reverse motor controllers over I2C using the gobot.io robotic framework. See: https://www.piborg.org/, https://gobot.io/
Index ¶
- type Driver
- func (h *Driver) Connection() gobot.Connection
- func (h *Driver) GetEPO() (bool, error)
- func (h *Driver) Halt() (errs error)
- func (h *Driver) Name() string
- func (h *Driver) ResetEPO() error
- func (h *Driver) SetMotorA(power float32) error
- func (h *Driver) SetMotorB(power float32) error
- func (h *Driver) SetName(n string)
- func (h *Driver) Start() (err error)
- func (h *Driver) StopAllMotors() error
- type RevDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver struct
func NewDriver ¶
NewDriver creates a new driver with specified name and i2c interface
Params:
conn Connector - the Adaptor to use with this Driver
Optional params:
i2c.WithBus(int): bus to use with this driver i2c.WithAddress(int): address to use with this driver
func (*Driver) Connection ¶
func (h *Driver) Connection() gobot.Connection
Connection returns the connection
func (*Driver) ResetEPO ¶
ResetEPO latch state, use to allow movement again after the EPO has been tripped
func (*Driver) StopAllMotors ¶
StopAllMotors will stop all motors
Click to show internal directories.
Click to hide internal directories.