Spike Prime & Robot Inventor python Library Reference
Spike Prime & Robot Inventor python Library
|
Public Member Functions | |
def | __init__ (self, port, irthermo_address=IRTHERMO_ADDRESS) |
Initialize the class with the i2c address of your IRthermometer. More... | |
def | command (self, command) |
Writes a value to the command register. More... | |
def | get_AmbientC (self) |
Reads the Ambient Temperature in Celsius. | |
def | get_AmbientF (self) |
Reads the Ambient Temperature in Fahrenheit. | |
def | get_TargetC (self) |
Reads the Target Temperature in Celsius. | |
def | get_TargetF (self) |
Reads the Target Temperature in Fahrenheit. | |
Public Member Functions inherited from lib.mindsensors.SPIKEi2c | |
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. | |
Public Attributes | |
irthermo_address | |
port | |
Public Attributes inherited from lib.mindsensors.SPIKEi2c | |
SCL | |
SDA | |
address | |
int_clk | |
Static Public Attributes | |
int | IRTHERMO_ADDRESS = 0x2A |
Default IRthermometer I2C Address. | |
int | COMMAND = 0x41 |
Command Register. | |
int | AMBIENTC = 0x42 |
Ambient Temperature in C. More... | |
int | TARGETC = 0x44 |
Target Temperature in C. More... | |
int | AMBIENTF = 0x46 |
Ambient Temperature in F. More... | |
int | TARGETF = 0x48 |
Target Temperature in C. More... | |
Static Public Attributes inherited from lib.mindsensors.SPIKEi2c | |
int | int_clk = -1 |
def lib.mindsensors.IRTHERMO.__init__ | ( | self, | |
port, | |||
irthermo_address = IRTHERMO_ADDRESS |
|||
) |
Initialize the class with the i2c address of your IRthermometer.
dist_address | Address of your IRthermometer, skip if default |
def lib.mindsensors.IRTHERMO.command | ( | self, | |
command | |||
) |
Writes a value to the command register.
command | Value to write to the command register. |
|
static |
Ambient Temperature in C.
Will return an integer value
|
static |
Ambient Temperature in F.
Will return an integer value
|
static |
Target Temperature in C.
Will return an integer value
|
static |
Target Temperature in C.
Will return an integer value