Motoron Motor Controller library for Raspberry Pi
|
Go to the source code of this file.
Functions | |
def | motoron_protocol.calculate_crc (buffer) |
This file defines the arbitrary constants needed to communicate with a Motoron.
We do not recommend importing this package directly because all of the constants defined in it are available through the motoron
package.
Definition in file motoron_protocol.py.
def motoron_protocol.calculate_crc | ( | buffer | ) |
This method calculates the 7-bit CRC needed for a Motoron command or response.
Most users will not need to use this, since most methods in this library automatically append a CRC byte or check received CRC bytes when appropriate.
Definition at line 172 of file motoron_protocol.py.