Spike Prime & Robot Inventor python Library Reference
Spike Prime & Robot Inventor python Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lib.mindsensors.TMP275 Class Reference
Inheritance diagram for lib.mindsensors.TMP275:
lib.mindsensors.SPIKEi2c

Public Member Functions

def __init__ (self, port, TMP275_address=TMP275_ADDRESS)
 Initialize the class with the i2c address of your TMP275. More...
 
def readTemperature (self)
 Read Temeprature in degree C from TMP275.
 
def readTemperatureC (self)
 Read Temeprature in degree C from TMP275.
 
def readTemperatureF (self)
 Read Temeprature in degree F from TMP275.
 
- 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

 TMP275_address
 
 port
 
- Public Attributes inherited from lib.mindsensors.SPIKEi2c
 SCL
 
 SDA
 
 address
 
 int_clk
 

Static Public Attributes

int TMP275_ADDRESS = 0x98
 Default TMP275 I2C Address.
 
int COMMAND = 0x01
 Command Register.
 
int TMPERATURE = 0x00
 TMPERATURE Register. More...
 
- Static Public Attributes inherited from lib.mindsensors.SPIKEi2c
int int_clk = -1
 

Constructor & Destructor Documentation

◆ __init__()

def lib.mindsensors.TMP275.__init__ (   self,
  port,
  TMP275_address = TMP275_ADDRESS 
)

Initialize the class with the i2c address of your TMP275.

Parameters
TMP275_addressAddress of your TMP275, skip if default (0x98)

Member Data Documentation

◆ TMPERATURE

int lib.mindsensors.TMP275.TMPERATURE = 0x00
static

TMPERATURE Register.

Will return an integer value


The documentation for this class was generated from the following file: