Motoron Motor Controller library for Raspberry Pi
|
Public Member Functions | |
def | __init__ (self, *bus=1, address=16) |
def | set_bus (self, bus) |
def | __init__ (self, *bus=1, address=16) |
def | set_bus (self, bus) |
Public Attributes | |
address | |
bus | |
Protected Member Functions | |
def | _smbus_send_command_core (self, cmd, send_crc) |
def | _smbus_read_response (self, length) |
def | _mpy_send_command_core (self, cmd, send_crc) |
def | _mpy_read_response (self, length) |
def | _smbus_send_command_core (self, cmd, send_crc) |
def | _smbus_read_response (self, length) |
def | _mpy_send_command_core (self, cmd, send_crc) |
def | _mpy_read_response (self, length) |
Protected Attributes | |
_send_command_core | |
_read_response | |
_msg | |
Represents an I2C connection to a Pololu Motoron Motor Controller.
Definition at line 1665 of file motoron.py.
def motoron.MotoronI2C.__init__ | ( | self, | |
* | bus = 1 , |
||
address = 16 |
|||
) |
Creates a new MotoronI2C object to communicate with the Motoron over I2C.
bus | Optional argument that specifies which I2C bus to use. This can be an integer, an SMBus object from the smbus2 package, or an object with an interface similar to SMBus. The default bus is 1, which corresponds to /dev/i2c-1 . |
address | Optional argument that specifies the 7-bit I2C address to use. This must match the address that the Motoron is configured to use. The default address is 16. |
Reimplemented from motoron.MotoronBase.
Definition at line 1670 of file motoron.py.
def motoron.MotoronI2C.__init__ | ( | self, | |
* | bus = 1 , |
||
address = 16 |
|||
) |
Creates a new MotoronI2C object to communicate with the Motoron over I2C.
bus | Optional argument that specifies which I2C bus to use. This can be an integer, an SMBus object from the smbus2 package, or an object with an interface similar to SMBus. The default bus is 1, which corresponds to /dev/i2c-1 . |
address | Optional argument that specifies the 7-bit I2C address to use. This must match the address that the Motoron is configured to use. The default address is 16. |
Reimplemented from motoron.MotoronBase.
Definition at line 1670 of file motoron.py.
|
protected |
Definition at line 1750 of file motoron.py.
|
protected |
Definition at line 1750 of file motoron.py.
|
protected |
Definition at line 1744 of file motoron.py.
|
protected |
Definition at line 1744 of file motoron.py.
|
protected |
Definition at line 1727 of file motoron.py.
|
protected |
Definition at line 1727 of file motoron.py.
|
protected |
Definition at line 1720 of file motoron.py.
|
protected |
Definition at line 1720 of file motoron.py.
def motoron.MotoronI2C.set_bus | ( | self, | |
bus | |||
) |
Definition at line 1698 of file motoron.py.
def motoron.MotoronI2C.set_bus | ( | self, | |
bus | |||
) |
Definition at line 1698 of file motoron.py.
|
protected |
Definition at line 1713 of file motoron.py.
|
protected |
Definition at line 1711 of file motoron.py.
|
protected |
Definition at line 1710 of file motoron.py.
motoron.MotoronI2C.address |
The 7-bit I2C address used by this object.
The default is 16.
Definition at line 1687 of file motoron.py.
motoron.MotoronI2C.bus |
Definition at line 1718 of file motoron.py.