|
| def | __init__ (self, port, dist_address=DIST_ADDRESS) |
| | Initialize the class with the i2c address of your Dist-Tof. More...
|
| |
| def | command (self, command) |
| | Writes a value to the command register. More...
|
| |
|
def | get_distance_mm (self) |
| | Reads the distance in millimeters returns integer.
|
| |
|
def | get_distance_inches (self) |
| | Reads the distance in inches returns float.
|
| |
|
def | __init__ (self, port, i2c_address, bitrate=100) |
| |
| def | readByte (self, reg) |
| | Read the byte from reg of the i2c device. More...
|
| |
| def | readArray (self, reg, len) |
| | read len long data array at reg of the i2c device More...
|
| |
| def | writeByte (self, reg, value) |
| | write value at reg of the i2c device More...
|
| |
| def | writeArray (self, reg, arr) |
| | write data array at reg of the i2c device More...
|
| |
| def | readString (self, reg, length) |
| | Read the string of len from reg of the i2c device. More...
|
| |
| def | readInteger (self, reg) |
| | Read the int from reg of the i2c device. More...
|
| |
| def | readIntegerSigned (self, reg) |
| | Read the signed int from reg of the i2c device. More...
|
| |
| def | readLong (self, reg) |
| | Read the long from reg of the i2c device. More...
|
| |
|
def | GetFirmwareVersion (self) |
| | Read the firmware version of the i2c device.
|
| |
|
def | GetVendorName (self) |
| | Read the vendor name of the i2c device.
|
| |
|
def | GetDeviceId (self) |
| | Read the i2c device id.
|
| |
|
|
| dist_address |
| |
|
| port |
| |
|
| SCL |
| |
|
| SDA |
| |
|
| address |
| |
|
| int_clk |
| |
◆ __init__()
| def lib.mindsensors.DIST.__init__ |
( |
|
self, |
|
|
|
port, |
|
|
|
dist_address = DIST_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your Dist-Tof.
- Parameters
-
| dist_address | Address of your Dist-Tof. skip if default |
◆ command()
| def lib.mindsensors.DIST.command |
( |
|
self, |
|
|
|
command |
|
) |
| |
Writes a value to the command register.
- Parameters
-
| command | Value to write to the command register. |
◆ DISTANCE
| int lib.mindsensors.DIST.DISTANCE = 0x42 |
|
static |
Distance Register.
Will return an integer value
◆ VOLTAGE
| int lib.mindsensors.DIST.VOLTAGE = 0x44 |
|
static |
Voltage Register.
Will return an integer value
The documentation for this class was generated from the following file: